Next: Processing Precompiled Libraries, Previous: About gnatelim, Up: Reducing Size of Ada Executables with gnatelim
gnatelim
gnatelim
has the following command-line interface:
$ gnatelim [switches] -main=main_unit_name {filename} [-cargs gcc_switches]
main_unit_name should be a name of a source file that contains the main subprogram of a program (partition).
Each filename is the name (including the extension) of a source file to process. “Wildcards” are allowed, and the file name may contain path information.
‘gcc_switches’ is a list of switches for gcc. They will be passed on to all compiler invocations made by gnatelim to generate the ASIS trees. Here you can provide -I switches to form the source search path, use the -gnatec switch to set the configuration file, use the -gnat05 switch if sources should be compiled in Ada 2005 mode etc.
gnatelim
has the following switches:
gnatelim
outputs to the standard error
stream the number of program units left to be processed. This option turns
this trace off.
gnatelim
version information is printed as Ada
comments to the standard output stream. Also, in addition to the number of
program units left gnatelim
will output the name of the current unit
being processed.