11.07.2015 Views

MSP430 IAR C/C++ Compiler reference guide - Rice University

MSP430 IAR C/C++ Compiler reference guide - Rice University

MSP430 IAR C/C++ Compiler reference guide - Rice University

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using a prebuilt library● is one of n or f for normal and full, respectively● is either empty for no support for position-independent code or p forposition-independent code.Note: The library configuration file has the same base name as the library.The <strong>IAR</strong> Embedded Workbench IDE will include the correct library object file andlibrary configuration file based on the options you select. See the <strong>MSP430</strong> <strong>IAR</strong>Embedded Workbench® IDE User Guide for additional information.If you build your application from the command line, you must specify the followingitems to get the required runtime library:●●●Specify which library object file to use on the XLINK command line, for instance:dl430fn.r43Specify the include paths for the compiler and assembler:-I msp430\incSpecify the library configuration file for the compiler:--dlib_config C:\...\dl430fn.hNote: All modules in the library have a name that starts with the character ? (questionmark).You can find the library object files and the library configuration files in the subdirectory430\lib.CUSTOMIZING A PREBUILT LIBRARY WITHOUT REBUILDINGThe prebuilt libraries delivered with the <strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong> <strong>Compiler</strong> can be used asis. However, it is possible to customize parts of a library without rebuilding it. There aretwo different methods:● Setting options for:● Formatters used by printf and scanf● The sizes of the heap and the stack● Overriding library modules with your own customized versions.The following items can be customized:Items that can be customizedDescribed inFormatters for printf and scanf Choosing formatters for printf and scanf, page 51Startup and termination code System startup and termination, page 56Low-level input and output Standard streams for input and output, page 60Table 12: Customizable items50<strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong> <strong>Compiler</strong>Reference Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!