Programmer Question
Hi,
I am working on some MIPS assembly code, and am unsure how to allocate memory during runtime. So far, I've been using the stack or the data segment to store anything I may need, but what if I want something more persistent? To be specific, how do I know what memory address to choose when allocating? How do I know that I'm not overwriting something (e.g.: the stack, or the program instructions)? I can start at 0x0000
but I have no idea what's in that block.
I have read Assembly memory allocation, but it doesn't seem to answer this question.
Thanks,
PM
Find the answer here
No comments:
Post a Comment