Getting Started with Ultrix Dec Ada Following these steps will get you started using Dec Ada. 1. Create a subdirectory for Dec Ada to use for your program library. It is suggested this be different from where your source resides. This sub directory is kept by Ada and you will mess yourself up if you delete anything. This is a one time action. You will get thoroughly confused if you have more than one program library. > mklib adalib > amklib adalib 2. Add to your .cshrc ( in your top level directory ) > setenv ADALIB "@~/adalib" Then type source .cshrc to make it active this time. This is necessary because the environment variable ADALIB that points to your program library goes away when you log off. It is to easy to loose a compilation because you forgot to set the program library. 3. Enter Ada source code with a normal editor or with the Language Sensitive Editor > lse yourfile.ada 4. Compile using any of the these or type > man ada > ada yourfile.ada # for interactive compiling 5. Link by using the ald command. Remember this requires the Ada name of a parameterless procedure. Because Ultrix allows long file names with underscore, please keep the file names the same as the Ada names. DEC uses the one variation on package specifications of adding an extra underscore at the end of the file name. > ald ada_procedure_name # produces executable a.out > ald -o yourfile yourfile # produces executable yourfile 6. An executable is produced by the link. Just type the name to execute. > a.out > yourfile 7. For the debugger use either dumb terminal or X windows debugger > dbx yourfile > dxdb yourfile 8. For more information > cd /usr/man/man1 > ls a* # to get ada related stuff > ls dx* # to get X related stuff > man ada > man ald > man amake etc. 9. Source of predefined library is in: /usr/lib/cmplrs/ada_110/lib/adalib/_/*.adc