9.3. Example of the Use of gnatls

Example of using the verbose switch. Note how the source and object paths are affected by the -I switch.


$ prefix-gnatls -v hello

GNATLS XGC 990223 Copyright 1997-1998 Free Software Foundation, Inc.

Source Search Path:
<Current_Directory>
/opt/.../lib/gcc-lib/prefix/2.8.1/adainclude/


Object Search Path:
<Current_Directory>
/opt/.../lib/gcc-lib/prefix/2.8.1/adalib/

./hello.o
Unit => 
Name   => hello
Kind   => subprogram body
Flags  => No_Elab_Code
Source => hello.adb    unchanged

Examples of use of the dependency list. Note the use of the -s switch which gives a straight list of source file. This can be useful for building specialized scripts.


$ prefix-gnatls -d hello
./hello.o   hello      
         OK hello.adb
         OK io.ads

$ prefix-gnatls -d -s -a hello

hello.adb
io.ads
/opt/.../lib/gcc-lib/prefix/2.8.1/adainclude/system.ads
/opt/.../lib/gcc-lib/prefix/2.8.1/adainclude/s-unstyp.ads