- Sun Sep 07, 2014 5:59 pm
#174675
Hi folks,
I just need to confirm my thought about whether compiler provides some memory management.
In assembly language, we have to manage data on our own (load/read to specific register, memory location). However in higher level language such as C we don't have to up to.
For example:
int x, y, z;
We would have no control where variables x, y and z are stored right? That mean the compiler does some memory management?
Would the compiler be able to know not to overwrite data of the main program when subroutine and interrupt service routine is called?
I just need to confirm my thought about whether compiler provides some memory management.
In assembly language, we have to manage data on our own (load/read to specific register, memory location). However in higher level language such as C we don't have to up to.
For example:
int x, y, z;
We would have no control where variables x, y and z are stored right? That mean the compiler does some memory management?
Would the compiler be able to know not to overwrite data of the main program when subroutine and interrupt service routine is called?