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.

Library functionsThis chapter gives an introduction to the C and <strong>C++</strong> library functions. It alsolists the header files used for accessing library definitions.For detailed <strong>reference</strong> information about the library functions, see the onlinehelp system.IntroductionThe <strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong> <strong>Compiler</strong> provides two different libraries:● <strong>IAR</strong> DLIB Library is a complete ISO/ANSI C and <strong>C++</strong> library. This library alsosupports floating-point numbers in IEEE 754 format and it can be configured toinclude different levels of support for locale, file descriptors, multibyte characters,et cetera.● <strong>IAR</strong> CLIB Library is a light-weight library, which is not fully compliant withISO/ANSI C. Neither does it fully support floating-point numbers in IEEE 754format or does it support Embedded <strong>C++</strong>.Note that different customization methods are normally needed for these two libraries.For additional information, see the chapter The DLIB runtime environment and TheCLIB runtime environment, respectively.For detailed information about the library functions, see the online documentationsupplied with the product. There is also keyword <strong>reference</strong> information for the DLIBlibrary functions. To obtain <strong>reference</strong> information for a function, select the functionname in the editor window and press F1.For additional information about library functions, see the chapterImplementation-defined behavior in this <strong>guide</strong>.HEADER FILESYour application program gains access to library definitions through header files, whichit incorporates using the #include directive. The definitions are divided into a numberof different header files, each covering a particular functional area, letting you includejust those that are required.It is essential to include the appropriate header file before making any <strong>reference</strong> to itsdefinitions. Failure to do so can cause the call to fail during execution, or generate erroror warning messages at compile time or link time.Part 2. <strong>Compiler</strong> <strong>reference</strong> 231

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

Saved successfully!

Ooh no, something went wrong!