07.04.2013 Views

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

16-Bit C <strong>Compiler</strong> User’s Guide<br />

A.11 STRUCTURES, UNIONS, ENUMERATIONS AND BIT FIELDS<br />

A.12 QUALIFIERS<br />

A.13 DECLARATORS<br />

A.14 STATEMENTS<br />

Implementation-Defined Behavior <strong>for</strong> Structures, Unions, Enumerations <strong>and</strong> Bit Fields<br />

is covered in sections A.6.3.9 <strong>and</strong> G.3.9 of the ANSI C St<strong>and</strong>ard.<br />

What are the results if a member of a union object is accessed using a member of a<br />

different type? (ISO 6.3.2.3)<br />

No conversions are applied.<br />

Describe the padding <strong>and</strong> alignment of members of structures? (ISO 6.5.2.1)<br />

Chars are byte-aligned. All other objects are word-aligned.<br />

What is the equivalent type <strong>for</strong> a plain int bit field? (ISO 6.5.2.1)<br />

User defined. By default, signed int bit field. May be made an unsigned int bit<br />

field using a comm<strong>and</strong> line option.<br />

What is the order of allocation of bit fields within an int? (ISO 6.5.2.1)<br />

Bits are allocated from least-significant to most-significant.<br />

Can a bit field straddle a storage-unit boundary? (ISO 6.5.2.1)<br />

Yes.<br />

Which integer type has been chosen to represent the values of an enumeration type?<br />

(ISO 6.5.2.2)<br />

int.<br />

Implementation-Defined Behavior <strong>for</strong> Qualifiers is covered in section G.3.10 of the<br />

ANSI C St<strong>and</strong>ard.<br />

Describe what action constitutes an access to an object that has volatile-qualified type?<br />

(ISO 6.5.3)<br />

If an object is named in an expression, it has been accessed.<br />

Implementation-Defined Behavior <strong>for</strong> Declarators is covered in section G.3.11 of the<br />

ANSI C St<strong>and</strong>ard.<br />

What is the maximum number of declarators that may modify an arithmetic, structure,<br />

or union type? (ISO 6.5.4)<br />

No limit.<br />

Implementation-Defined Behavior <strong>for</strong> Statements is covered in section G.3.12 of the<br />

ANSI C St<strong>and</strong>ard.<br />

What is the maximum number of case values in a switch statement? (ISO 6.6.4.2)<br />

No limit.<br />

DS51284H-page 134 © 2008 <strong>Microchip</strong> Technology Inc.

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

Saved successfully!

Ooh no, something went wrong!