Next: Definition
Up: SIC Programming Manual
Previous: Linking on UNIX
Using Variables
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.
- 1.
- 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).
- 2.
- The corresponding FORTRAN variable must be SAVEd (or appear
in a SAVEd COMMON) to prevent the compiler to allocate it on
the stack.
Gildas manager
2002-06-07