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.

StrtodStrtodThe function strtod does not accept hexadecimal floating-point strings in librarieswith the normal library configuration. To make a library do so, you need to rebuild thelibrary, see Building and using a customized library, page 55. Enable the configurationsymbol _DLIB_STRTOD_HEX_FLOAT in the library configuration file.AssertIf you have linked your application with support for runtime debugging, C-SPY will benotified about failed asserts. If this is not the behavior you require, you must add thesource file xreportassert.c to your application project. Alternatively, you canrebuild the library. The __ReportAssert function generates the assert notification.You can find template code in the 430\src\lib directory. For further information, seeBuilding and using a customized library, page 55. To turn off assertions, you must definethe symbol NDEBUG.In the <strong>IAR</strong> Embedded Workbench IDE, this symbol NDEBUG is by default defined in aRelease project and not defined in a Debug project. If you build from the command line,you must explicitly define the symbol according to your needs.HeapsThe runtime environment supports heaps in the following memory types:Memory type Segment name Extended keywordUsed by default in datamodelData16 DATA16_HEAP __data16 Small and MediumData20 DATA20_HEAP __data20 LargeTable 18: Heaps and memory typesSee The heap, page 39 for information about how to set the size for each heap. To use aspecific heap, the prefix in the table is the extended keyword to use in front of malloc,free, calloc, and realloc. The default functions will use one of the specific heapvariants, depending on project settings such as data model. For information about howto use a specific heap in <strong>C++</strong>, see New and Delete operators, page 106.Hardware multiplier supportSome <strong>MSP430</strong> devices contain a hardware multiplier. The <strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong><strong>Compiler</strong> supports this unit by means of dedicated runtime library modules.68<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!