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.

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

5.5 FLOATING POINT<br />

5.6 POINTERS<br />

For in<strong>for</strong>mation on implementation-defined behavior of integers, see<br />

Section A.7 “Integers”.<br />

The compiler uses the IEEE-754 <strong>for</strong>mat. Table 5-2 shows floating point data types are<br />

supported.<br />

TABLE 5-2: FLOATING POINT DATA TYPES<br />

Type Bits E Min E Max N Min N Max<br />

float 32 -126 127 2 -126<br />

2 128<br />

double* 32 -126 127 2 -126<br />

long double 64 -1022 1023 2 -1022<br />

E = Exponent<br />

N = Normalized (approximate)<br />

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

For in<strong>for</strong>mation on implementation-defined behavior of floating point numbers, see<br />

section Section A.8 “Floating Point”.<br />

All st<strong>and</strong>ard pointers are 16-bits wide. This is sufficient <strong>for</strong> full data space access<br />

(64 KB) <strong>and</strong> the small code model (32 Kwords of code.) In the large code model<br />

(>32 Kwords of code), pointers may resolve to “h<strong>and</strong>les”; that is, the pointer is the<br />

address of a GOTO instruction which is located in the first 32 Kwords of program space.<br />

A set of special purpose, 32-bit data pointers are also available. See<br />

Chapter 6. “Additional C Pointer Types” <strong>for</strong> more in<strong>for</strong>mation.<br />

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

2 128<br />

2 1024

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

Saved successfully!

Ooh no, something went wrong!