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


Untitled Document

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

3.5 Examples

The following are some typical Ada compilation command line examples:

$ gcc -c xyz.adb
Compile body in file `xyz.adb' with all default options.

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

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

$ gcc -c -gnatc abc-def.adb
Compile the subunit in file `abc-def.adb' in semantic-checking-only mode.


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