- 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 homework_one.gpr
project homework_one is
for main use ("homework_one.adb");
end homework_one;
- Adagide: Available on department lab machines.
Installer available from
adagide.martincarlisle.com.
Make sure that you install gnat before installing adagide!
- An editor of your choice and the
command line, on rucs or your personal machine
- Create
homework_one.adb
and edit to include your name, etc.
- Get (from RU IT One Stop), install, and run the RU VPN client
- Run the VPN client each time you need to 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 homework_one.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 homework_one.adb is in a subdirectory, use cd to navigate to
that subdirectory
- Compile your program on rucs, to create an executable and
to verify that it works on rucs:
gnatmake homework_one
homework_one
- Submit the .adb source program, the object file, and the executable, and then check that the submit worked:
submit itec320-02 homework_one.adb homework_one.o homework
submit itec320-02 -ls
- The second submit should list the three files that you submitted