1753696 Members
5662 Online
108799 Solutions
New Discussion юеВ

Re: 64-bit C Compiler

 
SOLVED
Go to solution
Ankit Grover
Frequent Advisor

64-bit C Compiler

I am working on HP Itanium Machine(HP-UX B.11.23 IA64). While trying to compile C programs using cc compiler, it is making 32-bit C objects. What settings need to be made to compile them into 64-bit objects?

I am using ANSI C compiler and cc is pointing to /opt/ansic/bin.
(fnsonld)hpux1572:/opt/ansic/bin>ll
total 2496
-r-xr-xr-x 3 bin bin 421880 Sep 22 2004 c89
-r-xr-xr-x 3 bin bin 421880 Sep 22 2004 c99
-r-xr-xr-x 3 bin bin 421880 Sep 22 2004 cc
2 REPLIES 2
H.Merijn Brand (procura
Honored Contributor
Solution

Re: 64-bit C Compiler

It is not a setting, but a compiler flag

# man cc would have told you

# cc +DD64 -o foo foo.c

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Ankit Grover
Frequent Advisor

Re: 64-bit C Compiler

Thanks for the solution.