Using the GNAT Ada compiler


You can use the GNAT compiler on all servers at NYU. All the needed files are in /usr/local/pkg/gnat/bin/, so you should place this directory in front on your path. If your test program is called numbers.adb, you create an executable for it simply by writing:

gnatmake numbers.adb

which you can execute by writing: ./numbers

If you want to compile a single file, you can write:

gcc -c numbers.adb

You can also install gnat on your personal computer, by downloading the appropriate version from the NYU ftp site, ftp cs.nyu.edu, directory pub/gnat.
Finally, you can install and use the ObjectAda compiler that comes with the Barnes text.
Copious information on Ada, including programming environments, software, and tools, can be found at Adapower .