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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ContentsCode segments ....................................................................................... 41Startup code ....................................................................................... 41Normal code ....................................................................................... 41Interrupt functions for <strong>MSP430</strong>X ...................................................... 41Interrupt vectors ................................................................................ 42<strong>C++</strong> dynamic initialization ................................................................. 42Verifying the linked result of code and data placement ........ 42Segment too long errors and range errors .......................................... 42Linker map file ................................................................................... 43The DLIB runtime environment .............................................................. 45Introduction to the runtime environment .................................. 45Runtime environment functionality ................................................... 45Library selection ................................................................................ 46Situations that require library building .............................................. 47Library configurations ....................................................................... 47Debug support in the runtime library ................................................ 47Using a prebuilt library ........................................................................ 48Customizing a prebuilt library without rebuilding ............................ 50Choosing formatters for printf and scanf ..................................... 51Choosing printf formatter ................................................................... 51Choosing scanf formatter .................................................................. 52Overriding library modules ............................................................... 53Building and using a customized library ....................................... 55Setting up a library project ................................................................. 55Modifying the library functionality .................................................... 55Using a customized library ................................................................ 56System startup and termination ...................................................... 56System startup .................................................................................... 56System termination ............................................................................ 58Customizing system initialization ................................................... 59__low_level_init ............................................................................... 59Modifying the file cstartup.s43 ......................................................... 60vii

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

Saved successfully!

Ooh no, something went wrong!