This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

------------------------------------------------------------------------




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]