Hey there,
I'm exploring how compilers decide where to place variables in a microcontroller's memory. Does this allocation rely on the microcontroller's memory architecture or the compiler manufacturer's choices? I've come across the division of memory into four categories in a c language:
Text: Reserved for program instructions.
Data: Used for storing global variables.
Stack: Reserved for local variables.
Heap: For dynamic memory allocation.
Would you happen to have any insights into this?
Thanks!
I'm exploring how compilers decide where to place variables in a microcontroller's memory. Does this allocation rely on the microcontroller's memory architecture or the compiler manufacturer's choices? I've come across the division of memory into four categories in a c language:
Text: Reserved for program instructions.
Data: Used for storing global variables.
Stack: Reserved for local variables.
Heap: For dynamic memory allocation.
Would you happen to have any insights into this?
Thanks!