12.4.1 Compiler-Managed Access
With this option, the compiler generates additional instruction as needed
to save, set, and restore the PSV or EDS window page register. To specify compiler-managed
access, add the __psv__
access qualifier to the variable definition. For
example:
__psv__ const int __attribute__((space(psv))) table1[] =
{ 1, 2, 3, /* and so on */ };
The __psv__
access qualifier works with any variable
allocated in space(psv)
. It can be used an any DSC device, and directs the compiler to generate code
automatically for managing the PSV or EDS window page register.