Douglas Walls' Weblog

« Previous day (Feb 26, 2006) | Main | Next day (Feb 28, 2006) »
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]

Search

Calendar

Links

Navigation

Referers