We all know when the -show=total_size option is specified, the total sizes of RAM, ROM, and program sections are output.
The output example of the total section size is shown below.
*** Total Section Size *** RAMDATA SECTION: 00000660 Byte(s)ROMDATA SECTION: 00000174 Byte(s)PROGRAM SECTION: 000016d6 Byte(s)
here is the memory layout of my RH850 (pardon me its Japanese Version).
I don't really understand what section exactly RAMDATA, ROMDATA, and PROGRAM is.
Can anyone mapping RAMDATA, ROMDATA, PROGRAM section to the memory layout?
here is what I though.
RAMDATA : Local RAM (CPU1), Retention RAM (CPU1), Local RAM (Self), Retention RAM (Self)
ROMDATA: ???
PROGRAM: Code Flash, Code Flash (Extension)
When you look into the linker configuration, you can find how the sections are mapped to physical memory.
Thank for the answer. I'm aware the linker configurations are mapped sections to physical memory.But, what I don't understand is option "-show=total_size" result explanation mappep to physical memory.
RAMDATA you already summarized well. ROMDATA are constants which go to Code Flash, like PROGRAM.