FloridaTech - College of Engineering
CSE1001 - LABORATORY
Author: Jamal Faik
Lab 2: AdaGIDE.
AdaGIDE is an easy to use Graphical User Interface (GUI) to create and build
computer programs using the Ada95 programming language. AdaGIDE uses the GNU NYU
Ada Translator (GNAT) compiler.
The interface is divided into five sections: the menu bar, tool bar, source file
edit window, line and column indicator and goto button, and the message list.
To create a program select New from the File menu or tool bar and type away. AdaGIDE will automatically colorize reserved words in blue and comments in green. Once the program has been typed in, select Compile from the Run menu or tool bar. Any compile errors will appear in the message list. To go to the line number the error is on, double click on the error message. After all compilation errors have been resolved, the program is ready to be build by selecting Build from the Run menu or tool bar. After the program has been built it can be executed by selecting Execute from the Run menu or tool bar.
Program Creation Process :
- Editing : Editing is performed within the source file edit window is a simple text editor providing standard window editing capability. The text in the source file edit window will be colorized to make the program easier to read. Ada95 reserved words will appear in blue. Comments will appear in green.
Within the source file edit window the right mouse button can be used to display a menu of commonly used actions.
The Edit menu located in the menu bar contains the usual Editing features. Their use is summerized is what follows :
- Undo : Cancels the last performed editing action.
- Copy : Copies the selected text into the clipboard.
- Cut : Cuts the selected text and place it into the clipboard.
- Paste : Place the clipbaord content in the current location of the cursor.
- Find : Locate a sequence of characters in the program text file.
- Replace : Replace a sequence of charcters by another one in some specific location in the text file or throughout the whole document.
- Comment : Renders the selected text as a comment.
- Uncomment : Eliminate the comment indication (--) from the selected text.
- Compiling : Compiling is the process of passing a source code through a compiler.
A compiler checks lexical ans syntax errors and generates an object code file (code generation).
In AdaGIDE, compilation is launched through the menu RUN located in the menu bar. Subenus
of RUN work as follows :
- Compile file : Compiles file in the edit window and any other files it requires.
Errors found (if any) are reported in the message window (bottom)
- Create Listing : Generates a compiled listing. The user will be prompted for a filename and location.
- Build : Builds the executable
- Stop compile/build : Stops current compile or build in progress
- Execute : Executes the built executable
- Run captured : Executes the built executable and copies the input and output of the program to a user specified file.
- Start debugger : Starts the debugger
Using the HELP
AdaGIDE environment provides an online-HELP. It also offers an online language reference manual. Students
should use both facilities as often as needed since they provide a very effective support.
Style :
When writing their programs, students are requested to comply with the style described under
www.cs.fit.edu/~ryan.(Progrmming style paragraph).
Application
Compile the follwing program : test.adb