
Last time, I mentioned memory is a stack but actually, it’s not just that
The process has 3 segments: text, data, and stack
So text is basically the actual code of the program. That’s right so that is basically that can just be allocated statically because once you load a program into memory and start running it the actual code of the program is never going to change.
For the stack, as your program executes you make a function call, such as push off rounds onto the stack and return from the call, you will pop a return value off the stack
Then for the data or the heat which is where your data is stored
And the process layer in memory is managed by a set of “registers”, which we will take a look soon.