How to allocate group of variables to the same address?
- Last updated
- 03:55, 12 Oct 2017
Save as PDF
I am using the CC-RL compiler for RL78 devices. Since I am using specified ranges of RAM for different purposes depending on the program, I want to allocate groups of variables for given purposes to the same addresses. How do I do this?
Divide the groups of variables into individual sections, and allocate them to the same addresses by using the colon (:) with the linker’s –start option.
Allocating sections .C, .D, and .F to the address 0xffe20.
|e² studio |
|CS+ (formerly CubeSuite+) |
|C Compiler Package for RL78 Family |