Hi, I have a question about how to store the assembly language in memory,when I compile the C-code in assembly, and run by "step", I can see the address of each instruction, but is there a way to change the start address of the code in the memory?
Second question is, can I break the assembly code into two? That is, how to store the two parts in separate memory sections? is there a way to do that?
I am curious about how the machine store the assembly code. BTW, I am working on a MACBOOK Pro, duo core. /////////////////////
Thank you, Michael! For the first question, can we change the offset value? or the linker and loader can not be controlled by the user? I am a litter confuse with your answer, it seems that we can not change it?
For the second question,I think what you are talking about is "input section", even if your have many ".text" input sections in your codes, after being assembled, they will become one ".text" "output section". And the output section is the actual code stored in memory. And I am wondering if I can control its position.
I think my question is a little tedious, but hope you can help me understand this. I am using the knowledge of DSP assembly, I think the mechanisms are same.
Thank you.
-da /////////////////////
Thank you. -da