[z88dk-dev] Generating Compressed Executables

Bridge to the z88dk-developers mailing list
Post Reply
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

[z88dk-dev] Generating Compressed Executables

Post by alvin »

I've just added a section on generating compressed executables to the new c lib's embedded target documentation:
http://www.z88dk.org/wiki/doku.php?id=l ... xecutables

The documentation is not quite complete as I haven't explained how the compressed ram executable works but the program is short and should be easy to understand without explanation anyway.

Compressed executables still expand to the same size in memory when they are decompressed before running so there's no change in the amount of memory available at runtime. The utility is in reduced storage requirements in ROM or on disk or reduced transmission times for systems that transmit binaries over a serial link.

For the compressed ram executable case, I tried making a compressed exe for the lisp interpretter clisp.c for the zx spectrum target. The compiled program came out to 32166 bytes. The compressed ram executable came out to just 10823 bytes. That's 1/3 the original binary size!



------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
Post Reply