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.

C language extensionsinstructions. To read more about using intrinsic functions, see Mixing C andassembler, page 83. For a list of available functions, see the chapter Intrinsicfunctions.● Library functionsThe <strong>IAR</strong> DLIB Library provides most of the important C and <strong>C++</strong> library definitionsthat apply to embedded systems. In addition, the library also provides someextensions, partly taken from the C99 standard. For more information, see <strong>IAR</strong> DLIBLibrary, page 233.Note: Any use of these extensions, except for the pragma directives, makes yourapplication inconsistent with the ISO/ANSI C standard.ENABLING LANGUAGE EXTENSIONSIn the <strong>IAR</strong> Embedded Workbench® IDE, language extensions are enabled by default.For information about how to enable and disable language extensions from thecommand line, see the compiler options -e, page 150, and --strict_ansi, page 166.C language extensionsThis section gives a brief overview of the C language extensions available in the<strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong> <strong>Compiler</strong>. The compiler provides a wide set of extensions, so tohelp you to find the extensions required by your application, the extensions have beengrouped according to their expected usefulness. In short, this means:●●●Important language extensions—extensions specifically tailored for efficientembedded programming, typically to meet memory restrictionsUseful language extensions—features considered useful and typically taken fromrelated standards, such as C99 and <strong>C++</strong>Minor language extensions, that is, the relaxation of some minor standards issuesand also some useful but minor syntax extensions.IMPORTANT LANGUAGE EXTENSIONSThe following language extensions available both in the C and the <strong>C++</strong> programminglanguages are well suited for embedded systems programming:●Memory attributes, type attributes, and object attributesFor information about the related concepts, the general syntax rules, and for<strong>reference</strong> information, see the chapter Extended keywords.180<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!