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.

Pragma directivesThis chapter describes the pragma directives of the <strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong><strong>Compiler</strong>.The #pragma directive is defined by the ISO/ANSI C standard and is amechanism for using vendor-specific extensions in a controlled way to makesure that the source code is still portable.The pragma directives control the behavior of the compiler, for example howit allocates memory for variables and functions, whether it allows extendedkeywords, and whether it outputs warning messages.The pragma directives are always enabled in the compiler.Summary of pragma directivesThe following table lists the pragma directives of the compiler that can be used eitherwith the #pragma preprocessor directive or the _Pragma() preprocessor operator:Pragma directivebasic_template_matchingbis_nmi_ie1bitfieldsconstsegdata_alignmentdatasegdiag_defaultdiag_errordiag_remarkdiag_suppressdiag_warninginclude_aliasinlineTable 34: Pragma directives summaryDescriptionMakes a template function fully memory-attribute awareGenerates a BIS instruction just before the RETIinstructionControls the order of bitfield membersPlaces constant variables in a named segmentGives a variable a higher (more strict) alignmentPlaces variables in a named segmentChanges the severity level of diagnostic messagesChanges the severity level of diagnostic messagesChanges the severity level of diagnostic messagesSuppresses diagnostic messagesChanges the severity level of diagnostic messagesSpecifies an alias for an include fileInlines a functionPart 2. <strong>Compiler</strong> <strong>reference</strong> 199

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

Saved successfully!

Ooh no, something went wrong!