Mail Archives: djgpp/1996/07/08/13:16:23
> DJGPP programs have about 40-50K or so of overhead which includes
Wrong - a stripped hello world is only around 30K. The biggest problem
is failure to use the "-s" switch. Replacing the other modules
mentioned can drop the size to around 15K or so.
> Could the glob code be a loadable module ? A 'dxe' ?
> If it has libc code then it is no good as I think someone said libc
> cannot be in a 'dxe'. I do not have the source code here to check.
Since it does I/O it would be difficult to put it in a DXE.
Look folks - if you want tiny programs, why are you using a 32-bit
compiler? I can write a DJGPP image which does the "hello world" thing
in a 2200 byte file by eliminating all the standard functionality except
the stub, but what's the purpose? For that matter, just write in DJASM
if you insist on a tiny program written with the DJGPP tools ...
The extra 25K or so of overhead is largely in modules which will get called
anyway when writing a real program which accesses files, etc, so I doubt
any real program over 60K or so will be noticeably bigger.
- Raw text -