Difference between revisions of "Relationship between RL78 mirror area and linker script for LLVM/GCC"

From GNU Tools - Wiki
Jump to: navigation, search
(Created page with " To allow instructions with 16-bit addresses to be used with const data, thus producing shorter code, the usage of the mirroring feature of the RL78 is recomanded. We use thi...")
 
(No difference)

Latest revision as of 20:15, 14 November 2022

To allow instructions with 16-bit addresses to be used with const data, thus producing shorter code, the usage of the mirroring feature of the RL78 is recomanded.

We use this for the .rodata section, placing the section at a fixed address in the mirror source address range will result in it being mirrored to the destination address range.

Example RL78 mirror area.jpg

You can find more details about the mirror area in the RL78 software manual (Section 2.2.1) : https://llvm-gcc-renesas.com/pdf/r01us0015ej0220_rl78.pdf