This EE Note presents two techniques to place C code and data modules in SHARC memory using VisualDSP++. The first technique involves editing the LDF files to explicitly locate entire object files in memory segments. The second technique shows how to use the SECTION keyword in your C source code to explicitly place individual variables and functions in specific memory segments.
This document presents two methods to place C code and data at specific addresses in SHARC processor memory. The first technique involves editing Linker Description Files (LDF) to explicitly locate entire object files in custom memory segments. The second technique demonstrates how to use the SECTION keyword within C source code to force individual variables and functions into designated memory segments.
The attached code example is based on the ADSP-21060 SHARC processor.
The -mpmcode compiler switch was valid in pre-VisualDSP releases of the SHARC Tools.
The default segment name for code storage is seg_pmco.