Next: Tree Files, Previous: About gnatelim, Up: Reducing the Size of Ada Executables with gnatelim
Eliminate Pragma
The simplified syntax of the Eliminate pragma used by gnatelim is:
| pragma Eliminate (Library_Unit_Name, Subprogram_Name); |
where
Library_Unit_NameSubprogram_NameThe effect of an Eliminate pragma placed in the GNAT configuration
file gnat.adc is:
Subprogram_Name is declared within
the library unit Library_Unit_Name, the compiler will not generate
code for this subprogram. This applies to all overloaded subprograms denoted
by Subprogram_Name.
Eliminate is used (called)
in a program, the compiler will produce an error message in the place where
it is called.