next up previous contents index
Next: Definition Up: SIC Programming Manual - Previous: Library Only mode   Contents   Index


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 to prevent the compiler to allocate it on the stack.



Subsections

Gildas manager 2014-07-01