Mail Archives: djgpp/1998/04/07/19:25:22
First off, any exe compiled with allegro has something like a
200k overhead, regardless of the program's size. Second, have you run
STRIP on your program to remove debugging info (or use the -s switch)?
This helps A LOT.
FAQ 8.15 deals with this and says, among other things,
"Apart from getting to protected-mode, the DJGPP startup code also
includes such functionality as wildcard expansion, long command-line
support, and loading the environment from a disk file; these usually
aren't available with other DOS protected-mode compilers. Exception and
signal handling (not available at all in v1.x), FPU detection and
emulator loading (which were part of go32 in v1.x), are now also part of
the startup code.
If your program doesn't need parts of the startup code, it can be made
smaller by defining certain functions with empty bodies. These functions
are _crt0_glob_function , __crt0_load_environment_file , and
__crt0_setup_arguments. By defining empty substitutes for all three of
these, you can make the "Hello" program be 18KB on disk. These functions
are documented in the DJGPP libc reference"
One final thing, if executable size is that important, try using DJP, an
executalbe compressor, which works quite transparantly (and well).
Good Luck
--Matthew Krause
Conn. USA
Sorrry for the garbage below, but I need an e-mail address :>)
_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]
- Raw text -