??? 09/21/06 08:21 Read: times |
#124754 - overlay Responding to: ???'s previous message |
Russell Bull said:
in high level languages and assembler all variables are effectively 'global' as they all exist in the same memory space. However, it comes down the the 'usage' of the variables. In a high level language, you define the 'visibility' of a variable and the rules of the language enforce this 'visibility'. In high level languages like C or Pascal it's not only the visibility that makes a variable local. The compiler or linker also overlay the variables with others that are currently out of scope. Most compilers use the stack for this but most 8051 tools use real memory overlaying because the 8051 is not good at accessing things on the stack. |