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.

Implementation-defined behaviorSee Locale, page 64.Bits per character in execution character set (5.2.4.2.1)The number of bits in a character is represented by the manifest constant CHAR_BIT. Thestandard include file limits.h defines CHAR_BIT as 8.Mapping of characters (6.1.3.4)The mapping of members of the source character set (in character and string literals) tomembers of the execution character set is made in a one-to-one way. In other words, thesame representation value is used for each member in the character sets except for theescape sequences listed in the ISO standard.Unrepresented character constants (6.1.3.4)The value of an integer character constant that contains a character or escape sequencenot represented in the basic execution character set or in the extended character set fora wide character constant generates a diagnostic message, and will be truncated to fit theexecution character set.Character constant with more than one character (6.1.3.4)An integer character constant that contains more than one character will be treated as aninteger constant. The value will be calculated by treating the leftmost character as themost significant character, and the rightmost character as the least significant character,in an integer constant. A diagnostic message will be issued if the value cannot berepresented in an integer constant.A wide character constant that contains more than one multibyte character generates adiagnostic message.Converting multibyte characters (6.1.3.4)The only locale supported—that is, the only locale supplied with the <strong>IAR</strong> C/<strong>C++</strong><strong>Compiler</strong>—is the ‘C’ locale. If you use the command line option--enable_multibytes, the <strong>IAR</strong> DLIB Library will support multibyte characters ifyou add a locale with multibyte support or a multibyte character scanner to the library.The <strong>IAR</strong> CLIB Library does not support multibyte characters.See Locale, page 64.Range of 'plain' char (6.2.1.1)A ‘plain’ char has the same range as an unsigned char.Part 2. <strong>Compiler</strong> <strong>reference</strong>253

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

Saved successfully!

Ooh no, something went wrong!