Computer Science 237 |
Lecture 25: Instruction Set Architecture
Date: November 9, 2005
The compiler places the globals in high memory, below stack (K is at 4020, X is 20 below Y, Y is 20 below X). These fixed values make the code nonrelocatable. It would be impossible to have two of these programs running on the same machine, or a version running in a different location, since the values are hard-wired into the code.
This is how a compiler might perform the translation.