[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cross-compiling on 64 to 32-bit Linux

From: Bob Friesenhahn
Subject: Re: cross-compiling on 64 to 32-bit Linux
Date: Sun, 24 May 2009 11:25:43 -0500 (CDT)

On Sun, 24 May 2009, Jan Engelhardt wrote:
Bruno wrote:
The -m64 flag is the default on bi-arch Linux systems.

-m64 is the default on where it has been configured so. Just because
your shiny x86_64 install does that, does not mean it is universal.
Oftentimes RISCs, and sparc64 is usually one of these, defaults to
defaulting to 32, because 64 is slower there. Of course you can
compile a gcc that defaults to 64.

I have not noticed that PowerPC or SPARC 64 bit code is slower or faster than 32 bit code. I have noticed that some older or poorly maintained applications (e.g. Perl) sometimes don't work as 64-bit code.

Compiler defaults are simply a matter of policy which is up to the GCC maintainers, the individual Linux distribution, or even the person who installs GCC, to determine.

Bob Friesenhahn
GraphicsMagick Maintainer,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]