Douglas Walls' Weblog

« Catching security... | Main | Finding a dynamic... »
20060227 Monday February 27, 2006

IPL32 to LP64, Number One Porting Issue

ILP32 - integer, long, and pointer types are 32-bits in size
LP64 - long and pointer types are 64-bits in size, int remains 32-bitsin size

What's the number one issue with porting 32-bit application (ILP32) to a
64-bit environment (LP64)?

Failure to include system header files.  Without including system header files system functions, like malloc(), are implicitly defined to return an int.  An int is32-bits, with LP64 malloc() returns a 64-bit pointer which won't fit.  Most of the time this results in a segmentation fault.

Checklist for getting started coverting an application to be 64-bitclean:  Some helpful links:  ( Feb 27 2006, 10:56:11 AM PST ) Permalink Comments [0]

Trackback URL: http://blogs.sun.com/dew/entry/ipl32_to_lp64_number_one
Comments:

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed

Search

Calendar

Links

Navigation

Referers