This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to use SPARC m64 option of gcc-3.0.2
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: yjkim at SPring8 dot or dot jp
- Cc: gcc-help at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: 06 Dec 2001 15:57:04 +0100
- Subject: Re: How to use SPARC m64 option of gcc-3.0.2
- References: <20011206.AAA1007648468@postech.ac.kr>
"Yujong Kim" <yjkim@postech.ac.kr> writes:
> Please, would tell me the way how I can use -m64 option to compile my code with 64-bit ?
> May I reinstall the gcc-3.0.2 with other configure option to use -m64 option in my machine ?
GCC 3.0.x doesn't support 64-bit code on Solaris 7/8. The installation
manual states:
Starting with Solaris 7, the operating system is capable of executing
64-bit SPARC V9 binaries. GCC 3.0 doesn't properly support this yet.
Although some patches or recipes to enable this support have been posted
to various newsgroups and mailing lists, we recommend against using
them, since the compiler may either crash or, worse, silently generate
bad code. If you really need this capability now, you might try a CVS
version of GCC 3.1, which will fully support this. If all you want is
code tuned for the UltraSPARC CPU, you should try the
@option{-mtune=ultrasparc} option instead, which should be safe from
those bugs and produce code that, unlike full 64-bit code, can still run
on non-UltraSPARC machines.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Email: ro@TechFak.Uni-Bielefeld.DE