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.

Summary of extended keywordsThe following object attributes are available:●●●Object attributes that can be used for variables: __no_initObject attributes that can be used for functions and variables: location, @, and__rootObject attributes that can be used for functions: __intrinsic, __noreturn,__raw, __save_reg20, and vector.You can specify as many object attributes as required for a specific function or dataobject.For more information about location and @, see Controlling data and functionplacement in memory, page 116. For more information about vector, see vector, page214.Syntax for object attributesThe object attribute must be placed in front of the type. For example, to place myarrayin memory that is not initialized at startup:__no_init int myarray[10];The #pragma object_attribute directive can also be used. The followingdeclaration is equivalent to the previous one:#pragma object_attribute=__no_initint myarray[10];Note: Object attributes cannot be used in combination with the typedef keyword.Summary of extended keywordsThe following table summarizes the extended keywords:Extended keyword__cc_version1__cc_version2__data16__data20__interrupt__intrinsic__monitor__no_initTable 33: Extended keywords summaryDescriptionSpecifies the Version1 calling conventionSpecifies the Version2 calling conventionControls the storage of data objectsControls the storage of data objectsSupports interrupt functionsReserved for compiler internal use onlySupports atomic execution of a functionSupports non-volatile memory192<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!