What is the compiler otpion for 64 bit
Hi,
I will port aplication source code on Solaris 5.8 ( compiler Sun Studio C++ 5.5) with 64bit option.
Existing Source already ported with 32bit with same m/c and compiler.
Question:
1)Is it required to install 64 bit OS and 64 bit library for the same?
2) What all the compiler flages needs to be set so that it will generates 64 libraries
Thanks
-Riaj
# 1
Generating or running 64-bit code requires the 64-bit version of Solaris, which comes with 64-bit libraries.
To generate 64-bit code on SPARC, use the option -xarch=v9 on every cc and CC command line.
You should also use the CC option -xport64 to get warnings about code that might not be correct for 64-bit compilation.
Refer to the C++ Users Guide that comes with the compiler for a discussion of these options.