Building 64 bit compiler on Solaris AMD64
Scott L. Burson
Scott@ergy.com
Wed Dec 17 23:05:00 GMT 2008
[Forgot to CC the list; resending]
On Wed, Dec 17, 2008 at 2:05 PM, Andrew Haley <aph@redhat.com> wrote:
> Scott L. Burson wrote:
>> On Wed, Dec 17, 2008 at 11:58 AM, Scott L. Burson <Scott@ergy.com> wrote:
>>> I have figured out how to build a 64-bit GCC 4.3.2 on Solaris AMD64.
>>> I wanted to build a 64 bit compiler (I mean, one where the compiler
>>> executables are 64 bit) for performance.
>
> I would simply make sure that the cc in my path defaulted to generating
> 64-bit binaries, by wrapping it in a script if needs be. If you make
> sure that the only cc available always generates 64-bit binaries and
> --disable-bootstrap, you'll have a 64-bit gcc. Easy peasy.
No, I'll only get a 64-bit stage 1. The build process builds the
stage 1 compiler using the host compiler, then rebuilds using the
stage 1 compiler -- which in this case will produce a 32-bit result.
This is the same reason that just saying CC='gcc -m64' doesn't work.
-- Scott
More information about the Gcc-help
mailing list