Skip to main content
Knowledgebase
Home
Renesas Electronics America - Knowledgebase

Variable Arranged in Short Direct Addressing Area_CC-RL

Last Updated:02/07/2018

Question:

I am using RL78 Compiler CC-RL.
Although I specified a section where to arrange a variable by using #pragma section, the variable is arranged in the variable section of the short direct addressing area (SADDR area).
How can I arrange the variable as specified?

Answer:

If the variable/function information file is used, the variable is arranged in the SADDR area according to the declaration in the file.
Confirm that the variable/function information file is not used.
When you use the function of the IDE to specify the setting to automatically generate the variable/function information file, cancel the setting, and then do either of the following:

    Edit the variable/function information file to delete the declaration of the variable you do not want to arrange in the SADDR area.
    Stop using the variable/function information file and qualify variables you want to arrange in the SADDR area with the __saddr qualifier in the source file.
 

Suitable Products

e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family