Memory Hierarchy
In a C/C++ project, the memory layout—referring to the organization of functions and data in flash memory and RAM—is managed by the linkers within your development toolchain. This layout is controlled using different linker configuration files depending on the toolchain. When utilizing GCC, the layout is dictated by .ld
linker scripts, whereas keils relies on .sct
scatter files.
For more information about memory layout, please refer to the following documents: