[Solved] Understanding Memory Layout of C Programs [closed]


What is ‘code’ memory and it is a part of which memory (RAM or Flash
memory)?

Is one of the sections of a program in an object file or in memory, which contains executable instructions. Code and read-only data are stored in flash memory.

When are the local and global variables allocated in memory — during
compile-time or run-time?

For Statically allocated local and global variables means that the compiler determines the memory address of the variable at compile time.

Also have look on RAM/Flash usage.

3

solved Understanding Memory Layout of C Programs [closed]