This notifies the compiler of a variable that is to be assigned to the saddr area.
External variables and static variables in a function are allocated to the saddr area when they are specified with #pragma saddr. |
#pragma saddr handles even a variable to which the __far keyword is added as if __near was specified without a warning being output. |
Instructions that access the saddr area are shorter than those accessing the normal memory area and their object code also becomes smaller, leading to improved execution speed. |
If there are multiple declarations for the same variable and #pragma saddr is written at the location where the second or subsequent declaration takes effect, correct operation is not guaranteed. |
The __saddr keyword cannot be used together with the __near or __far keyword, and a compilation error will occur if used so. |