Using Variables
Keywords: gildas-prog

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

Subsections

- Definition
- Assignment and Examination
- Mathematical Formula Handling
- Deleting Variables