Up: SIC Programming Manual -
Previous: Library Only mode
SIC allows the definition and use of variables. Variables can be declared
by the user, or by the program. In the latter case, SIC only remembers
the address of the variable, examining its content only when required
(command EXAMINE for example or any reference to the variable name in
a command). This imposes two precautions in the FORTRAN code.
- The attribute of the SIC variable (READ-ONLY or READ-WRITE) should be chosen carefully (e.g. a real-time application
in which the time is declared as a SIC variable).
- The corresponding FORTRAN variable must be SAVEd to prevent the
compiler to allocate it on the stack.