MSP430 Optimizing C++ Compiler 5.1-14

MSP430 Optimizing C++ Compiler 5.1-14 - Chapter 5 SLAU132C...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 5 SLAU132C–November 2008 MSP430 C/C++ Language Implementation The C/C++ compiler supports the C/C++ language standard that was developed by a committee of the American National Standards Institute (ANSI/ISO) to standardize the C programming language. The C++ language supported by the MSP430 is defined by the ANSI/ISO/IEC 14882-1998 standard with certain exceptions. Topic .................................................................................................. Page 5.1 Characteristics of MSP430 C ...................................................... 72 5.2 Characteristics of MSP430 C++ ................................................... 72 5.3 Data Types ............................................................................... 73 5.4 Keywords ................................................................................. 74 5.5 C++ Exception Handling ............................................................ 76 5.6 Register Variables and Parameters ............................................. 76 5.7 The asm Statement ................................................................... 77 5.8 Pragma Directives ..................................................................... 78 5.9 The _Pragma Operator ............................................................... 86 5.10 Generating Linknames ............................................................... 86 5.11 Initializing Static and Global Variables ......................................... 87 5.12 Changing the ANSI/ISO C Language Mode ................................... 88 5.13 GNU C Compiler Extensions ....................................................... 90 5.14 Compiler Limits ........................................................................ 91 SLAU132C–November 2008 MSP430 C/C++ Language Implementation 71 Submit Documentation Feedback
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
5.1 Characteristics of MSP430 C 5.2 Characteristics of MSP430 C++ Characteristics of MSP430 C www.ti.com The compiler supports the C language as defined by ISO 9899, which is equivalent to American National Standard for Information Systems-Programming Language C X3.159-1989 (C89). The compiler does not support C99. Unsupported features of the C library are: The run-time library has minimal support for wide and multi-byte characters. The type wchar_t is implemented as int. The wide character set is equivalent to the set of values of type char. The library includes the header files <wchar.h> and <wctype.h>, but does not include all the functions specified in the standard. So-called multi-byte characters are limited to single characters. There are no shift states. The mapping between multi-byte characters and wide characters is simple equivalence; that is, each wide character maps to and from exactly a single multi-byte character having the same value. The run-time library includes the header file <locale.h>, but with a minimal implementation. The only
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 03/20/2012.

Page1 / 21

MSP430 Optimizing C++ Compiler 5.1-14 - Chapter 5 SLAU132C...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online