The cost of large uninitialized static/global arrays

farren at hoptoad.UUCP farren at hoptoad.UUCP
Thu May 29 17:51:13 AEST 1986


In article <2810 at utcsri.UUCP> petera at utcsri.UUCP (Smith) writes:
<<  A whole lot about executables in MS-DOS which have vast numbers of
    zeros embedded in the file >>

    If you're using Microsoft C, or the Microsoft Macro Assembler, you
might like to look at the EXEPACK utility, which addresses this very
problem by encoding long runs of identical bytes.  This can result in
quite significant improvement in .EXE file sizes.  (There is also supposed
to be a switch in the latest versions of the linker which will automatically
produce packed executables, but I don't know what it is.)

Mike Farren
{hplabs, dual, lll-crg}!well!farren
hoptoad!farren



More information about the Comp.lang.c mailing list