Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

Solaris 64-bit Developer's Guide
Copyright
Expand TOC  Preface
Expand TOC  1.  64-bit Computing
Expand TOC  2.  When to Use 64-bit
Expand TOC  3.  Comparing 32-bit and 64-bit Interfaces
Collapse TOC  4.  Converting Applications
Data Model
Implementing Single-Source Code
Derived Types
<sys/types.h>
<inttypes.h>
Tools
lint(1)
Guidelines for Converting to LP64
Do Not Assume int and Pointers Are the Same Size
Do Not Assume int and long Are the Same Size
Sign Extension
Use Pointer Arithmetic Instead of Address Arithmetic
Repack Structures
Check Unions
Specify Constant Types
Beware of Implicit Declaration
sizeof Is an unsigned long
Use Casts to Show Your Intentions
Check Format String Conversion Operation
Other Considerations
Derived Types That Have Grown in Size
Use #ifdef for Explicit 32-bit Versus 64-bit Prototypes
Calling Convention Changes
Algorithmic Changes
Checklist for Getting Started
Expand TOC  5.  The Development Environment
Expand TOC  6.  Advanced Topics
Expand TOC  A.   Changes in Derived Types
Expand TOC  B.   Frequently Asked Questions (FAQs)
Expand TOC  Index