Is there a technical note or other document somewhere that explains the effect different compiler options have on code size?
I have seen various mentions but no comprehensive overall document.
Commands and options I see as affecting code size are as follows. Have I missed any? Can anyone give estimates of the percentage or absolute increase in size each produces?
$COM
$DEBUG PBDEBUG
$ERROR BOUNDS
$ERROR NUMERIC
$ERROR OVERFLOW
$ERROR STACK
$EVENT
$FLOAT EMULATE/NPX/PROCEDURE
$LIB COM
$LIB LPT
$LIB GRAPH
$LIB CGA/EGA/VGA
$LIB FULLFLOAT
$LIB IPRINT
$OPTIMIZE SIZE/SPEED
$OPTION CNTLBREAK
$OPTION GOSUB
$OPTION SIGNED
$SOUND
$STACK
ON EVENT
ON ERROR
Apart from the explicit options mentioned above, does the size of the runtime library code vary according to the statements you use, or is it a single unit?
Similarly if you don't use COM or SOUND related statements does the compiler automaticaly omit the buffers and related library or do you have to explicitly exclude it.
Any other suggestions for reducing program size?
Paul
-------------
The PC Guru, Austin Tx
Working on data recovery tools.
I have seen various mentions but no comprehensive overall document.
Commands and options I see as affecting code size are as follows. Have I missed any? Can anyone give estimates of the percentage or absolute increase in size each produces?
$COM
$DEBUG PBDEBUG
$ERROR BOUNDS
$ERROR NUMERIC
$ERROR OVERFLOW
$ERROR STACK
$EVENT
$FLOAT EMULATE/NPX/PROCEDURE
$LIB COM
$LIB LPT
$LIB GRAPH
$LIB CGA/EGA/VGA
$LIB FULLFLOAT
$LIB IPRINT
$OPTIMIZE SIZE/SPEED
$OPTION CNTLBREAK
$OPTION GOSUB
$OPTION SIGNED
$SOUND
$STACK
ON EVENT
ON ERROR
Apart from the explicit options mentioned above, does the size of the runtime library code vary according to the statements you use, or is it a single unit?
Similarly if you don't use COM or SOUND related statements does the compiler automaticaly omit the buffers and related library or do you have to explicitly exclude it.
Any other suggestions for reducing program size?
Paul
-------------
The PC Guru, Austin Tx
Working on data recovery tools.
Comment