Next: , Previous: Correcting the List of Eliminate Pragmas, Up: Reducing Size of Ada Executables with gnatelim


7.3.4 Making Your Executables Smaller

In order to get a smaller executable for your program you now have to recompile the program completely with the new gnat.adc file created by gnatelim in your current directory:

     $ gnatmake -f main_prog

(Use the -f option for gnatmake to recompile everything with the set of pragmas Eliminate that you have obtained with gnatelim).

Be aware that the set of Eliminate pragmas is specific to each program. It is not recommended to merge sets of Eliminate pragmas created for different programs in one gnat.adc file.