10.3.2.2 Program Region

program (xr)   : ORIGIN = 0x800004,      LENGTH = 0x1FFFC

The program region corresponds to the Flash memory of the dsPIC33AK128MC106 device that is available for user code, library code and constants. The starting address of region program is 0x800004. This is the first location in Flash that is available for general use.

Note: On dsPIC33A devices, the PC increments by 4 for each instruction word. In this architecture, a PC address is equivalent to a byte address
Note: The linker will automatically try to allocate program text into any region that has the (xr) flags; usually this region is named program. If a custom linker script partitions memory and you wish to control the allocation, removing the x flag will prevent the linker from allocating program text to that region.