SLAU132Y September 2004 – June 2021
Most MSP430X devices do not have any writeable memory above the 64K boundary. However, most FRAM MSP430x devices and a few non-FRAM devices have writeable memory above 64k boundary.
For those few non-FRAM devices with high RAM (above 64K), non-constant data may be placed above the 64K boundary by the linker command file.
For all other devices, which have no writeable memory above the 64K boundary even when the restricted or large data models are used, only constant data will be placed above 64K. The compiler can take advantage of this knowledge to produce more efficient code. The --near_data option controls this optimization.
When --near_data=globals is specified, this option tells the compiler that all global read/write data must be located in the first 64K of memory. This is the default behavior. Global read/write data is placed by default in the .bss and .data sections.
If --near_data=none is specified, this option tells the compiler that it cannot rely on this assumption to generate more efficient code.