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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Implementation-Defined Behavior<br />

The following table describes the amount of storage <strong>and</strong> range of various types of<br />

floating point numbers: (ISO 6.1.2.5)<br />

What is the direction of truncation, when an integral number is converted to a<br />

floating-point number, that cannot exactly represent the original value? (ISO 6.2.1.3)<br />

Down.<br />

What is the direction of truncation, or rounding, when a floating-point number is<br />

converted to a narrower floating-point number? (ISO 6.2.1.4)<br />

Down.<br />

A.9 ARRAYS AND POINTERS<br />

A.10 REGISTERS<br />

TABLE A-3: FLOATING-POINT TYPES<br />

Designation Size (bits) Range<br />

float 32 1.175494e-38 … 3.40282346e+38<br />

double* 32 1.175494e-38 … 3.40282346e+38<br />

long double 64 2.22507385e-308 … 1.79769313e+308<br />

* double is equivalent to long double if -fno-short-double is used.<br />

Implementation-Defined Behavior <strong>for</strong> Arrays <strong>and</strong> Pointers is covered in section G.3.7<br />

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

What is the type of the integer required to hold the maximum size of an array that is,<br />

the type of the size of operator, size_t? (ISO 6.3.3.4, ISO 7.1.1)<br />

unsigned int.<br />

What is the size of integer required <strong>for</strong> a pointer to be converted to an integral type?<br />

(ISO 6.3.4)<br />

16 bits.<br />

What is the result of casting a pointer to an integer, or vice versa? (ISO 6.3.4)<br />

The mapping is the identity function.<br />

What is the type of the integer required to hold the difference between two pointers to<br />

members of the same array, ptrdiff_t? (ISO 6.3.6, ISO 7.1.1)<br />

unsigned int.<br />

Implementation-Defined Behavior <strong>for</strong> Registers is covered in section G.3.8 of the ANSI<br />

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

To what extent does the storage class specifier register actually effect the storage<br />

of objects in registers? (ISO 6.5.1)<br />

If optimization is disabled, an attempt will be made to honor the register storage<br />

class; otherwise, it is ignored.<br />

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

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

Saved successfully!

Ooh no, something went wrong!