64-bit Applications
This COBOL system includes both 32-bit and a 64-bit versions of both the
development system and Micro Focus Server. This enables you to create new
64-bit programs, or to convert existing 32-bit programs to run in 64-bit mode.
You can also create single-source applications which you can compile and build
into 32-bit and 64-bit executables.
In a 64-bit environment, you can:
- Build 64-bit applications to run in 64-bit mode only.
- Create 32-bit applications to run in 32-bit compatibility mode in the
64-bit environment or in a 32-bit environment.
- Debug and build 64-bit applications.
- You cannot cross-develop for different 64-bit platforms. So, for
example, if you build your application on an Itanium machine, it will not run
on an X64 machine. You must build it on an X64 machine for it to run
there.
In a 32-bit environment, you can:
- Create applications for a 64-bit environment.
- Can debug 64-bit applications in 32-bit mode only and build them to run
in only a 32-bit environment.
Differences in Compiling and Building 64-bit and 32-Bit
Applications
The only differences between compiling and building a 32-bit application
and a 64-bit application are:
- For 64-bit, you must specify 64-bit in the project's build
configuration. This sets the P64 Compiler
directive, which ensures that all pointers are handled as 64-bit pointers.
- When debugging, the display output from your application appears in a
separate command window called animserv instead of the usual
Application Output window. This window does not gain focus
in the same way that the Application Output does, so you may
have to locate it and bring it to the top to see your application's
output.