Previous Topic: Support for 64-bit CA Gen ServersNext Topic: Support for 64-bit AIX, Solaris, and Linux


64-bit Windows Support

CA Gen supports compiling and executing generated C block mode and server applications as 64-bit images on Windows using Visual Studio. You can choose to build your generated C block mode and server applications as 64-bit by setting the new Build Tool token, OPT.BITS, to 64 in your profile (the default is 32). You will need to regenerate your code to gain access to 64-bit data types used in the Windows X 64 API to create 64-bit images. Regenerated code can be compiled into either 32-bit X86 binaries or 64-bit X64 binaries by setting the OPT.BITS Build Tool token.

The VS110\amd64 folder contains a collection of files that support 64-bit Windows. When setting token OPT.BITS to 64, the shared libraries and executables in the VS110\amd64 folder will be utilized. A set of user exit rebuild procedures are also available in the VS110\amd64 folder and must be used to rebuild any necessary 64-bit designated user exits.

If you choose to use the 64-bit runtimes provided with CA Gen to execute your application, you must modify PATH to prepend %GENxx%Gen\VS110\amd64 before %GENxx%Gen\VS110 and %GENxx%Gen (based on which Visual Studio compiler you are using). If you build a 64-bit application and execute outside the Build Tool without modifying PATH, the application will crash. If you execute from the Build Tool, the Build Tool is aware that you want to use 64-bit runtime libraries and the application will run.

Note: Prepending %GENxx%Gen\VS110\amd64 to PATH must only be done in the current command window session, and must not be set in the System Environment variables.