www.delorie.com/gnu/docs/gcc/gnat_ug_219.html   search  
 
Buy the book!


Untitled Document

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

21.8 Summary of the gnatelim Usage Cycle

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.

  1. Produce a bind file and a set of tree files

     
    $ gnatmake ^-c Main_Prog^/ACTIONS=COMPILE MAIN_PROG^
    $ gnatbind main_prog
    $ gnatmake -f -c -gnatc -gnatt Main_Prog
    

  2. Generate a list of Eliminate pragmas
     
    $ gnatelim Main_Prog >[>] gnat.adc
    

  3. Recompile the application

     
    $ gnatmake ^-f Main_Prog^/FORCE_COMPILE MAIN_PROG^
    


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003