This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
64 Bit code generation using gcc
- From: "Ashish Mangla" <Ashish dot Mangla at cmcltd dot com>
- To: gcc_help at gcc dot gnu dot org
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 11 Mar 2005 15:08:55 +0530 (IST)
- Subject: 64 Bit code generation using gcc
Dear Sir/ Madam,
I am trying to compile my source codes on Sun Solaris 9 Operating
system running on sun4u sparc SUNW,Ultra-5_10 using gcc-2.95.3. The
kernel is running on 64 bit. I m giving the command
gcc program.c
it is creating progrom.o with ELFCLASS32. To generate 64 bit target, if I
provide gcc -mcpu=v9 -m64 program.c
it is saying that "cannot use v8plus instructions in a non-v8plus
target binary" and "-m64 is not supported by this configuration.
-mptr32 not allowed on -m64".
How can I resolve my problem. Does gcc-2.95.3 supports generation of
64 bit ELFCLASS/ target. If not, which gcc version I should use.
Looking for your positive response.
Thanks and Regards,
Ashish Mangla
ASDC - SCADA
CMC Limited, Hyderabad
Contact 23000501, 401 Ext: 2302, M: 9866223028
------------------------------------------------------------------------
It is not because things are difficult that we don't dare
It is because we don't dare things are difficult.
------------------------------------------------------------------------