Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Mac OS Runtime Architectures /
Chapter 4 - PowerPC Runtime Conventions


Data Types

Table 4-1 lists the binary data types and their sizes in the PowerPC runtime environment.

Table 4-1 Data types in the PowerPC runtime environment
TypeSize
(bytes)
Alignment
(bytes)
RangeNotes
UInt8110 to 255 
SInt811-128 to 127 
SInt1622-32,768 to 32,767 
UInt16220 to 65,535 
SInt3244-2-31 to 231 -1 
UInt32440 to 232-1 
Boolean11 0 = false, nonzero = true
float44\xB1(2-149 to 2127)IEEE 754 standard
double88\xB1(2-1074 to 21023)IEEE 754 standard
Pointer440 to FFFFFFFF 

All numeric and pointer data types are stored in big-endian format (that is, high bytes first, then low bytes). Signed integers use two's-complement representation.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 MARCH 1997