SLAU132V October 2004 – February 2020
The MSP430 compiler supports two different code memory models, small and large, which are controlled by the --code_model option.
The small code model is slightly more efficient in terms of run-time performance and memory usage when compared to the large code model. Therefore, it is beneficial to use the small code model when all code and text sections will fit in the low 64K of memory. Modules assembled/compiled using the small-code model are not compatible with modules that are assembled/compiled using large-code model. The linker generates an error if any attempt is made to combine object files that use different code memory models. An appropriate run-time library must be used as well.