-->
ADA - Compiling Programs

ADA - Compiling Programs

Introduction

ADA is programing language mainly used in CPSC-435, the language was originaly designed to support code reuse, improve readability, and avoid as many errors as possible. The Computer Science department uses gnat as an ADA compiler, more information about these tools can be found at www.gnat.com, and more information about the ada language can be found at www.adahome.com/rm95

Compiling an ADA program

The Computer Science department currently only supports ADA programing under UNIX, so use putty or F-secure to log on to interactive.unix.cs.tamu.edu. To start programing in ADA it is suggested that you create an ADA directory from which you work out of.

% mkdir ADA
% cd ADA

Create your ADA program using a text editor such as vi or emacs. There are helpfiles on both of these editors at the helpdesk website. Note: ADA programs use the .ada extention.

Once you have created an ADA program use the following command to compile it.

% gnatmake myprogram.ada

Then to execute your program:

% ./myprogram


To Top of Page To Top Of Page Printer Friendly Version

©CSG Helpdesk

Valid CSS!