Yurttas/PL/IL/A/docs/gnat-setup.html
Jump to navigation
Jump to search
- gnat - Set-up documentation for Ada-95 on a Solaris machine.
- copy gnatpath into your
.loginfile, so that,set path = ( /share/gnat/3.13p/bin $path )
automatically sets up your environment variables and give access to gnat resources each time you login.
(copy is done for once for the entire semester!)
- You need to structure your working directories, i.e. "
mkdir ADA" and keep all your Ada work hidden in subdirectories of your "ADA" directory.
Assuming that your environment is set-up correctly, then compilation and linkage can be done with the gnatmake utility as follows:
gnatmake filename
[source code for ada procedure should be named as filename.adb]
For execution, all you need to type in is: "filename" of executable that is used in gnatmake filename.
For detailed information:
- GNAT Reference Manual
- GNAT User's Guide
- Using GNU CC
- Debugging with GDB - Source Level debugger
- Using the Graphical Interface to GDB