Lecture 10 notes USE OF WADA Westinghouse Ada compiler Targeted to MIL-STD-1750A and VHSIC signal processors 1. Create a sub directory for holding your Ada source and the program library. Make this your default directory for all subsequent work. (Multiple directory capability exists but is not discussed here) 2. Perform the initialization to create the program library and bring in the packages STANDARD, TEXT_IO, etc. $ @CAS$:ADAINIT This does a DELETE that results in a file not found the first time Then there are a bunch of COPIES and a bunch of SET PROTECTIONS The result is something like the following files: 000000001.ALU;1 000000002.ALU;1 000000003.ALU;1 000000004.ALU;1 000000005.ALU;1 000000006.ALU;1 000000007.ALU;1 000000008.ALU;1 DIRECTORY.A0L;1 The files with .ALU are internal representations of Ada Library Units. When a WITH is performed on an Ada name, the file DIRECTORY.A0L is searched for the Ada name. Corresponding to the Ada name is a VAX VMS file specification like 00000001.ALU. At any time the table of contents can be printed by typing: $ WTOCADA The result is a list of Ada names with the date and time of insertion into the library. To get a more reasonable DIR of this sub directory use DIR/EXCLUDE=*.ALU The initial directory looks something like: Ada Library USER$DISK:[ your sub directory ] 83/11/14 14:18:53 STANDARD \_ preamble and specification of 83/11/14 14:19:22 STANDARD:PRE / package specification 83/11/14 14:19:24 STANDARD:REL \_ relocatable code for linker 83/11/14 14:19:26 STANDARD:REL:PRE / 83/11/14 14:19:59 TEXT_IO 83/11/14 14:20:04 TEXT_IO:PRE 83/11/14 14:20:07 TEXT_IO:REL 83/11/14 14:20:10 TEXT_IO:REL:PRE End TOC: 8 entries 3. To compile one or more Ada compilation units have the source in this sub directory eg. PKG1.ADA The normal rules of ANSI/MIL-STD-1815A apply. To do a compilation type: $ WADA PKG1 This runs with no printout except for errors and makes an entry in the program library. ( Like VAX FORTRAN ) To get a listing type: $ WADA/LIST PKG1 Then either $ TYPE PKG1 or $ PRINT PKG1 ( the .LIS is not needed ) The 1750A assembly language can be included in the listing with the addition of the /ASSE switch. 4. When all parts of the total Ada program have been compiled sucessfully, the 1750ASSP absolute image can be created by the Ada linker. Assume the main procedure had an Ada name of MAIN. To link type: $ WLINKADA MAIN This results in a file FOR027.DAT ( The default name used in 1750ASSP ) This file contains your total Ada program and the necessary run time library to form a complete 1750A load module. 5. The 1750A support software package can now be used to do simulation or down link loads into 1750A hardware. If the program uses PUT and/or PUT_LINE to show results of running, type: $ @CAS$:ASSP ;T SIMULATE X RTPMAIN With any luck your results will come out on the CRT.