Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

UPX (Announce)

posted by lucho, 31.10.2007, 15:40

> > As fas as I know, the UPX default NRV algorithm has a very fast unpacking,
> > so the delay it causes should be unnoticeable even on slow machines. The
> > new LZMA method unpacks very slowly though. Perhaps the executables are
> > packed with it?
>
> Andris used "upx --brute". (see gcc422s2.zip\diffs\install.gcc\makepkg.pl) So no LZMA.

Wrong. I just tested how UPX 3.0 compresses COFF executables with --brute. The result is the same as if I added --lzma explicitly. That is, it assumes --lzma not only with --ulra-brute, but also with --brute. If you use --best instead of --brute, it uses NRV and the executable is larger but then unpacks much faster. For 16-bit executables, --brute and --ultra-brute don't assume --lzma (you must specify it explicitly if you want it), but for 32-bit executables, they do.

So, it's better to replace --brute with --best to avoid LZMA. Adding --nrv2e (default is --nrv2d as far as I know) may reduce file size slightly, but it's still NRV, not LZMA.

You may want to let Andris know this.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 273 users online (0 registered, 273 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum