Solaris 64-bit Developer's Guide

Header Files

A single set of system headers supports both 32-bit and 64-bit compilation environments. You do not need to specify a different include path for the 64-bit compilation environment.

To better understand the changes made to the headers for support of the 64-bit environment, you should understand the various definitions in the header <sys/isa_defs.h>. This header contains a group of well known #defines and sets these for each instruction set architecture. Inclusion of <sys/types.h> automatically includes <sys/isa_defs.h>.

The symbols in the following table are defined by the compilation environment:




Indicates any of the SPARC family of processor architectures. This includes SPARC V7, SPARC V8, and SPARC V9 architectures. The symbol sparc is a deprecated historical synonym for __sparc.


Indicates the 32-bit SPARC V8 architecture as defined by Version 8 of the SPARC Architecture Manual.


Indicates the 64-bit SPARC V9 architecture as defined by Version 9 of the SPARC Architecture Manual.


Indicates any of the x86 family of processor architectures. These architectures include the 386, 486, Pentium, IA-32, AMD64, and EM64T processors. 


Indicates the 32-bit i386 architecture. 


Indicates the 64-bit amd64 architecture. 

Note –

__i386 and __amd64 are mutually exclusive. The symbols __sparcv8 and __sparcv9 are mutually exclusive and are only relevant when the symbol __sparc is defined.

The following symbols are derived from some combination of the symbols above being defined:




The data model where sizes of int, long, and pointer are all 32 bits.


The data model where sizes of long and pointer are all 64 bits.

Note –

The symbols _ILP32 and _LP64 are mutually exclusive.

If writing completely portable code is not possible, and specific 32-bit versus 64-bit code is required, make the code conditional using _ILP32 or _LP64. This makes the compilation environment machine independent and maximizes the portability of the application to all 64-bit platforms.