TAL Programmer's Guide

Debugging Programs
Running and Debugging Programs
096254 Tandem Computers Incorporated 16–7
Compiling the Sample Source File
To compile the sample source file into an object file, specify the source file name
(MYSRC) and an object file name (MYPROG):
TAL /IN mysrc/ myprog
Figure 16-2 shows the beginning of the compiler listing for the sample object file.
Figure 16-2. Sample Compiler Listing
PAGE 1 [1] $MYVOL.MYSUBV.MYSRC
TAL - T9250D20 - (01JUN93)
Copyright Tandem Computers Incorporated 1976, 1978, 1981–1983, 1985, 1987–1993
1. 000000 0 0 !This is a source file named MYSRC.
2. 000000 0 0
3. 000000 0 0 ?INSPECT !Request symbolic debugger
4. 000000 0 0 ?SYMBOLS !Request symbols in Object file
5. 000000 0 0 ! for symbolic debugger
6. 000000 0 0 ?NOLIST, SOURCE $system.system.extdecs (initializer)
7. 000000 0 0 !Include system procedure
8. 000000 0 0 ! without its listing
9. 000000 0 0 ?LIST
10. 000000 0 0
11. 000000 0 0 PROC myproc MAIN; !Declare procedure MYPROC
12. 000000 1 0 BEGIN
13. 000000 1 1 INT var1; !Declare variables
14. 000000 1 1 INT var2;
15. 000000 1 1 INT total;
16. 000000 1 1
17. 000000 1 1 CALL initializer; !Read the start-up message
18. 000006 1 1 var1 := 5; !Assign value to VAR1
19. 000010 1 1 var2 := 10; !Assign value to VAR2
20. 000012 1 1 total := var1 + var2; !Assign sum to TOTAL
21. 000016 1 1 END; !End MYPROC