Here is a quick summary of the steps to be taken in order to reduce
the size of your executables with gnatelim
. You may use
other GNAT options to control the optimization level,
to produce the debugging information, to set search path, etc.
$ gnatmake -c main_prog $ gnatbind main_prog
Eliminate
pragmas
$ gnatelim main_prog >[>] gnat.adc
$ gnatmake -f main_prog