1.5. Examples

The following are some typical Ada compilation command line examples:

$ prefix-gcc -c xyz.adb

Compile body in file xyz.adb with all default options.

$ prefix-gcc -c -O2 -gnatp -gnata xyz-def.adb

Compile the child unit package in file xyz-def.adb with extensive optimizations, checks suppressed, and pragma Assert/Debug statements enabled.

$ prefix-gcc -c -gnatc abc-def.adb

Compile the subunit in file abc-def.adb in semantic-checking-only mode.