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


Untitled Document

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

4.6 Output Control

The following switches allow additional control over the output generated by the binder.

^-A^/BIND_FILE=ADA^
Generate binder program in Ada (default). The binder program is named `b~mainprog.adb' by default. This can be changed with -o gnatbind option.

^-c^/NOOUTPUT^
Check only. Do not generate the binder output file. In this mode the binder performs all error checks but does not generate an output file.

^-C^/BIND_FILE=C^
Generate binder program in C. The binder program is named `b_mainprog.c'. This can be changed with -o gnatbind option.

^-e^/ELABORATION_DEPENDENCIES^
Output complete list of elaboration-order dependencies, showing the reason for each dependency. This output can be rather extensive but may be useful in diagnosing problems with elaboration order. The output is written to `stdout'.

^-h^/HELP^
Output usage information. The output is written to `stdout'.

^-K^/LINKER_OPTION_LIST^
Output linker options to `stdout'. Includes library search paths, contents of pragmas Ident and Linker_Options, and libraries added by gnatbind.

^-l^/ORDER_OF_ELABORATION^
Output chosen elaboration order. The output is written to `stdout'.

^-O^/OBJECT_LIST^
Output full names of all the object files that must be linked to provide the Ada component of the program. The output is written to `stdout'. This list includes the files explicitly supplied and referenced by the user as well as implicitly referenced run-time unit files. The latter are omitted if the corresponding units reside in shared libraries. The directory names for the run-time units depend on the system configuration.

^-o ^/OUTPUT=^file
Set name of output file to file instead of the normal `b~mainprog.adb' default. Note that file denote the Ada binder generated body filename. In C mode you would normally give file an extension of `.c' because it will be a C source program. Note that if this option is used, then linking must be done manually. It is not possible to use gnatlink in this case, since it cannot locate the binder file.

^-r^/RESTRICTION_LIST^
Generate list of pragma Rerstrictions that could be applied to the current unit. This is useful for code audit purposes, and also may be used to improve code generation in some cases.


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

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