Programming for portability between ILP32 and LP64
When you want to program for portability between the ILP32 and LP64 environments, you can use the following strategies:
Header files to provide type definitions
Suffixes and explicit types to prevent unexpected behavior
Defining pad members to avoid data alignment problems
Prototypes to avoid debugging problems
Conditional compiler directive for preprocessor macro selection
Converters
Locales
Using header files to provide type definitions
Using suffixes and explicit types to prevent unexpected behavior
Defining pad members to avoid data alignment problems
Using prototypes to avoid debugging problems
Using a conditional compiler directive for preprocessor macro selection
Using converters under ILP32 or LP64
Using locales under ILP32 or LP64
Parent topic:
z/OS 64-bit environment