The two approaches for handling global variables where a circular register buffer is used to handle local variables for nested procedures:
- Variables declared as global in an HLL can be assigned memory locations by the compiler, and all machine instructions that reference these variables will use memory-reference operands.
- Incorporate a set of global registers in the processor. These registers would be fixed in number and available to all procedures.