Contact us Heritage collections Image license terms
HOME ACL Associates Technology Literature Applications Society Software revisited
Further reading □ OverviewNo.1No.2No.3No.4No.5No.8No.9No.11No.12No.13No.14No.15No.17No.19No.21No.22No.23No.24No.25No.26No.27No.28No.29No.30No.31No.32No.33No.37No.38No.39No.40No.41No.43No.44No.45No.46No.47No.48No.49No.50No.51No.52
ACD C&A INF CCD CISD Archives Contact us Heritage archives Image license terms

Search

   
ACLLiteratureProgress ReportsSPROGS Papers
ACLLiteratureProgress ReportsSPROGS Papers
ACL ACD C&A INF CCD CISD Archives
Further reading

Overview
No.1
No.2
No.3
No.4
No.5
No.8
No.9
No.11
No.12
No.13
No.14
No.15
No.17
No.19
No.21
No.22
No.23
No.24
No.25
No.26
No.27
No.28
No.29
No.30
No.31
No.32
No.33
No.37
No.38
No.39
No.40
No.41
No.43
No.44
No.45
No.46
No.47
No.48
No.49
No.50
No.51
No.52

SPROGS Paper No 19: A proposal for routine tracing

D Ralphs

August 21 1972

A trace facility is to be incorporated in the SPROGS system. It consists of two subroutines. The first, RTRACE, is a system routine and does the tracing and listing. The second, STRACE, is the user called routine and determines the level of tracing.

Both routines contain the following common block

      COMMON /TRCE /NUM, CNST ,CNT 

where NUM determines the type of tracing done. After CNST display routines have been encountered, extra tracing is output. CNT is the count that determines whether CNST display routines have been entered since the last output of extra tracing.

The probable range of values for NUM will be 0-3 with the following meanings:

NUM = 0     no trace required.
NUM = 1     the trace will output the display routine's 
            name and parameters.

NUM = 2 and 3 as for NUM = 1 plus the output of some of the global scalers. Which of these to output has not yet been decided so any relevant comments will be most welcome.

The variable CNST has two settings: either zero or greater than zero.

CNST = 0    no extra tracing. 
CNST > 0    the extra tracing is output after CNST display 
            routines have been entered since the last extra 
            output. The extra tracing will be the current 
            region parameters, the current region chain and 
            the millitime(sp?). 

CNT is in the range 0 ≤ CNT ≤ CNST.

A call of STRACE, eg

      CALL STRACE (1,3) 

will cause NUM and CNST to be set (to 1 and 3 respectively) and CNT to be reset to zero. Negative arguments are treated as zero and if the first is greater than 3 the message will result.

RTRACE is called from TESTIT by

      IF (NUM.GT.0) CALL RTRACE (routine param etc )

(TESTIT is called by each display routine. It determines if routine is to be stored or executed, and whether the array index variables or array parameters).

⇑ Top of page
© Chilton Computing and UKRI Science and Technology Facilities Council webmaster@chilton-computing.org.uk
Our thanks to UKRI Science and Technology Facilities Council for hosting this site