Homework 1 Steps
- Find or install the GNAT Ada Compiler:
- Automatically available on rucs and department lab machines
- For personal machines, download installer from
www.adacore.com/community
- Choose one of these IDEs:
- GPS:
- Available on department lab machines and
automatically installed with GNAT
- GPS needs a project file, like the gpr file below. Then you can simply click on the gpr file.
-- Put this in hw1.gpr
project hw1 is
for main use ("hw1.adb");
end hw1;
- Adagide: Available on department lab machines.
Installer available from
adagide.martincarlisle.com.
- Make sure that you install gnat before installing adagide!
- See the assignment for information on how to fix adagide.exe so that it will compile.
- An editor of your choice and the
command line, on rucs or your personal machine
- Create file
hw1.adb
, cut and paste the program (or type it in), and edit it to include your name, change the assignment statements, and fix
the number formats and the if statement.
- Get (from RU IT One Stop), install, and run the RU VPN client
- The VPN client must be running each time that you access rucs from off campus.
- This step may not be needed on campus lab machines
- Transfer your file to rucs, either by (1) using WinSCP or by (2) mapping your U: unix drive.
- Use WinSCP (Windows secure copy) (or scp from a mac terminal window) - VPN session must be running
- Map your U: Drive:
- From This PC, select Computer, and then Map network drive and then map your U: drive as
\\userdir\unix\username
- You may need to check "Connect using different credentials" and
enter RADFORD\username in place of your username)
- Drag and drop hw1.adb
from your machine to your U: drive. This will put your file onto rucs.
- Use putty (or a terminal window) to access rucs and compile and submit the file:
- Connect and log in to rucs (VPN connection required if
off campus, and perhaps if you are on campus)
- If hw1.adb is in a subdirectory, use cd to navigate to
that subdirectory
- Verify that your program works on rucs by compiling on rucs to create an executable and
then running that executable:
gnatmake hw1
hw1
-
On rucs, if you are using csh you may need to add /usr/local/gnat/bin to your path to access gnatmake, the Ada compiler.
- Submit the .adb source program and then check that the submit worked:
submit itec320-01 hw1.adb
submit itec320-01 -ls
- The second submit should list the file that you submitted