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.

IndexIndexAabortimplementation-defined behavior (CLIB) . . . . . . . . . . 263implementation-defined behavior (DLIB) . . . . . . . . . . 260system termination (DLIB) . . . . . . . . . . . . . . . . . . . . . . 59absolute locationdata, placing at (@) . . . . . . . . . . . . . . . . . . . . . . . . . . . 117language support for . . . . . . . . . . . . . . . . . . . . . . . . . . 181#pragma location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207addressing. See memory types and data modelsalgorithm (STL header file) . . . . . . . . . . . . . . . . . . . . . . . 235alignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169in structures (#pragma pack) . . . . . . . . . . . . . . . . . . . . 210in structures, causing problems . . . . . . . . . . . . . . . . . . 114of an object (__ALIGNOF__) . . . . . . . . . . . . . . . . . . . 181of data types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169restrictions for inline assembler . . . . . . . . . . . . . . . . . . . 85alignment (pragma directive) . . . . . . . . . . . . . . . . . . . . . . 257__ALIGNOF__ (operator) . . . . . . . . . . . . . . . . . . . . . . . . 181anonymous structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115anonymous symbols, creating . . . . . . . . . . . . . . . . . . . . . . 183applicationbuilding, overview of . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4startup and termination (CLIB) . . . . . . . . . . . . . . . . . . . 79startup and termination (DLIB) . . . . . . . . . . . . . . . . . . . 56architectures, <strong>MSP430</strong> and <strong>MSP430</strong>X . . . . . . . . . . . . . . 6, 13ARGFRAME (assembler directive) . . . . . . . . . . . . . . . . . . 96ARGSUSED (pragma directive) . . . . . . . . . . . . . . . . . . . . 257arraysdesignated initializers in . . . . . . . . . . . . . . . . . . . . . . . 185implementation-defined behavior. . . . . . . . . . . . . . . . . 255incomplete at end of structs . . . . . . . . . . . . . . . . . . . . . 183non-lvalue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187of incomplete types . . . . . . . . . . . . . . . . . . . . . . . . . . . 186single-value initialization. . . . . . . . . . . . . . . . . . . . . . . 187asm, __asm (language extension) . . . . . . . . . . . . . . . . . . . 183assembler codecalling from C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86calling from <strong>C++</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88inline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85assembler labels, making public (--public_equ) . . . . . . . . 163assembler language interface . . . . . . . . . . . . . . . . . . . . . . . 83calling convention. See assembler codeassembler list file, generating . . . . . . . . . . . . . . . . . . . . . . 153assembler output file. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87assembler, inline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182asserts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68implementation-defined behavior of, (CLIB). . . . . . . . 261implementation-defined behavior of, (DLIB). . . . . . . . 258including in application . . . . . . . . . . . . . . . . . . . . . . . . 228assert.h (CLIB header file) . . . . . . . . . . . . . . . . . . . . . . . . 239assert.h (DLIB header file) . . . . . . . . . . . . . . . . . . . . . . . . 233atoll, C99 extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238atomic operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26__monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195attributesobject . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189auto variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20–21at function entrance . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92programming hints for efficient code . . . . . . . . . . . . . . 124using in inline assembler code . . . . . . . . . . . . . . . . . . . . 85BBarr, Michael . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxivbaseaddr (pragma directive) . . . . . . . . . . . . . . . . . . . . . . . 257__BASE_FILE__ (predefined symbol). . . . . . . . . . . . . . . 226basic type names, using in preprocessor expressions(--migration_preprocessor_extensions). . . . . . . . . . . . . . . 155basic_template_matching (pragma directive) . . . . . . . . . . 200using . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109__bcd_add_long (intrinsic function) . . . . . . . . . . . . . . . . . 217__bcd_add_long_long (intrinsic function) . . . . . . . . . . . . 217__bcd_add_short (intrinsic function) . . . . . . . . . . . . . . . . 217__bic_SR_register (intrinsic function) . . . . . . . . . . . . . . . 217__bic_SR_register_on_exit (intrinsic function). . . . . . . . . 217265

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

Saved successfully!

Ooh no, something went wrong!