Skip to contentSkip to conversation

UPX or not UPX FreeDOS programs/TSRs?

DISCUSSION Frantisek Hanzlik 2 participants 2 messages May 4, 2014

lore
Share & tools
lore
#0 lore raw

Hi all more experienced,

I'm trying to revise and update dosemu-freedos package (subset of FreeDOS stuff used in DOSEMU usual installation) and I'm not sure, what is better - whether packaged programs by UPX or not. Actual dosemu-freedos-1.0-bin.tgz contains 40+ binaries, roughly half of them is packed with UPX - generally as FreeDOS program maintainers did.

And I'm not sure, what is optimal, use UPX or not. On some binaries it cause significant space reduction - e.g. 'display.exe' 0.13b has 62535 Byte, and UPXed has only 3651 Byte.
On other hand - at current disks sizes few (dozen or hundred) kB is nothing, and UPX packaging has perhaps its own disadvantages - and maybe especially with TSRs (as 'display.exe' is) this may lead to memory fragmentation(?).
Thus, what is Your opinion on the use of UPX?

Thanks, Franta Hanzlik

#1 lore raw

I don't know how it works in DOS, but if it creates a temporary
file to decompress and then executes that temporary file, then you have an additional disk write per program executed and also some more cache misses, so, in that case I think is preferable to not use that compression since it will be slower and as you say, the space reductions aren't needed today.
But if it decompresses in RAM and executes directly the
decompressed executable in RAM without touching the disk, then why not?
Thank you!!! Have a nice day.

Quoted 25 lines · Frantisek Hanzlik

Hi all more experienced,

I'm trying to revise and update dosemu-freedos package (subset of FreeDOS stuff used in DOSEMU usual installation) and I'm not sure, what is better - whether packaged programs by UPX or not. Actual dosemu-freedos-1.0-bin.tgz contains 40+ binaries, roughly half of them is packed with UPX - generally as FreeDOS program maintainers did.

And I'm not sure, what is optimal, use UPX or not. On some binaries it cause significant space reduction - e.g. 'display.exe' 0.13b has 62535 Byte, and UPXed has only 3651 Byte.
On other hand - at current disks sizes few (dozen or hundred) kB is nothing, and UPX packaging has perhaps its own disadvantages - and maybe especially with TSRs (as 'display.exe' is) this may lead to memory fragmentation(?).
Thus, what is Your opinion on the use of UPX?

Thanks, Franta Hanzlik

--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 9 lines
Ivan Baldo - [email protected] - http://ibaldo.codigolibre.net/
From Montevideo, Uruguay, at the south of South America.
Freelance programmer and GNU/Linux system administrator, hire me!
Alternatives: [email protected] - http://go.to/ibaldo

--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html