11.3.3.1 String and Const Objects
By default, the compiler will automatically arrange for strings and
const
-qualified initialized variables to be allocated in the
.const
section which is automatically available for access from C.
Specify the -mconst-in-data
option to direct the compiler to allocate
such objects in RAM.
For dsPIC33C/E/F and dsPIC30F devices, the .const
section is allocated
to a single fixed PSV page which is represented by the auto_psv
memory
space. Accessing the auto_psv
memory space is efficient as no page
manipulation is required. On these devices, additional Flash may be accessed using the
techniques introduced in section 11.3.4 Access of Objects in Program Memory, Managed PSV Access.