On Jun 6, 2009, at 12:54 AM, Ethan Dicks wrote:
Checking on a handy 64-bit Linux system, the gzip
binary is under
64K
total size, so that might not go so poorly. OTOH, wget is nearly
256K. That will be "fun" to adapt. I recommend paring back
unneeded
features and learning how overlays work.
But are those executables dynamically linked? If so, wouldn't the
static
executables be way larger?
Ah, yes... right you are. Well... those aren't stripped binaries, so
there's some symbol cruft to clean out. But then in the case of gzip,
there's the issue of the size of any compression matrices vs the size
of the data segment.
Indeed, that might be the biggest rub. Find the source code for
the original "compress" (the LZW algorithm) and look for the HSIZE
preprocessor define. Even LZW is pretty painful in a 16-bit address
space.
-Dave
--
Dave McGuire
Port Charlotte, FL