How to specify the medium memory model of CC-RL in case of LLVM-RL78?
How to specify the medium memory model of CC-RL in case of LLVM-RL78?
Hello support team,
CC-RL has two memory models. One is the small memory model: two bytes function pointer. The other is the medium memory model: four bytes function pointer. (In both cases, data pointer is two bytes if __far isn’t specified.) How to specify the medium memory model of CC-RL in case of LLVM-RL78?
Best regards,
NoMaY
Hello,
Thank you for reaching out to us!
The LLVM RL78 toolchain is currently using the same approach as the GCC RL78 toolchain is, regarding the memory model. A PLT (procedure link table) is used in order to access memory space over the 64KB limit.
We are working on a memory model option similar to the one used by the CCRL toolchain, which will be available starting with the next release.
Please let us know if we can be of further assistance!
Best Regards,
The Open Source Tools Team