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.

Descriptions of pragma directivesPragma directivelanguagelocationmessageno_epilogueobject_attributeoptimizepackrequiredrtmodelsegmenttype_attributevectorDescriptionTable 34: Pragma directives summary (Continued)Controls the <strong>IAR</strong> Systems language extensionsSpecifies the absolute address of a variable, or places groupsof functions or variables in named segmentsPrints a messagePerforms a local return sequenceChanges the definition of a variable or a functionSpecifies the type and level of an optimizationSpecifies the alignment of structures and union membersEnsures that a symbol that is needed by another symbol isincluded in the linked outputAdds a runtime model attribute to the moduleDeclares a segment name to be used by intrinsic functionsChanges the declaration and definitions of a variable orfunctionSpecifies the vector of an interrupt or trap functionNote: For portability reasons, see also Recognized pragma directives (6.8.6), page 257.Descriptions of pragma directivesThis section gives detailed information about each pragma directive.basic_template_matchingSyntaxDescriptionExample#pragma basic_template_matchingUse this pragma directive in front of a template function declaration to make thefunction fully memory-attribute aware, in the rare cases where this is useful. Thattemplate function will then match the template without the modifications described inTemplates and data memory attributes, page 108.#pragma basic_template_matchingtemplate void fun(T *);fun((int __data16 *) 0); /* Template parameter T becomesint __data16 */200<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!