| www.delorie.com/gnu/docs/gcc/gnat_ug_55.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
-gnatdx
Debug unit in the compiler source
file `debug.adb'.
-gnatG
The format of the output is very similar to standard Ada source, and is
easily understood by an Ada programmer. The following special syntactic
additions correspond to low level features used in the generated code that
do not have any exact analogies in pure Ada source form. The following
is a partial list of these special constructions. See the specification
of package Sprint in file `sprint.ads' for a full list.
new xxx [storage_pool = yyy]
at end procedure-name;
(if expr then expr else expr)
x?y:z construction in C.
target^^^(source)
target?(source)
target?^^^(source)
x #/ y
x #mod y
x #* y
x #rem y
free expr [storage_pool = xxx]
free statement.
freeze typename [actions]
reference itype
function-name! (arg, arg, arg)
labelname : label
expr && expr && expr ... && expr
[constraint_error]
Constraint_Error exception.
expression'reference
target-type!(source-expression)
[numerator/denominator]
-gnatD
gcc ^-g^/DEBUG^ switch will refer to the generated
`^xxx.dg^XXX_DG^' file. This allows you to do source level debugging using
the generated code which is sometimes useful for complex code, for example
to find out exactly which part of a complex construction raised an
exception. This switch also suppress generation of cross-reference
information (see -gnatx).
-gnatC
Very_Long_Package.Very_Long_Inner_Package.Var |
would normally appear in these tables as:
very_long_package__very_long_inner_package__var |
but if the `-gnatC' switch is used, then the name appears as
XCb7e0c705__var |
Here b7e0c705 is a compressed encoding of the qualification prefix. The GNAT Ada aware version of GDB understands these encoded prefixes, so if this debugger is used, the encoding is largely hidden from the user of the compiler.
-gnatR[0|1|2|3][s]
GNAT sources for full detalis on the format of `-gnatR3'
output. If the switch is followed by an s (e.g. `-gnatR2s'), then
the output is to a file with the name `^file.rep^file_REP^' where
file is the name of the corresponding source file.
-gnatx
gnatfind and gnatxref. The -gnatx switch
suppresses this information. This saves some space and may slightly
speed up compilation, but means that these tools cannot be used.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |