64 bit compiling

Ewan Mac Mahon ewan at macmahon.me.uk
Wed Nov 12 18:05:09 UTC 2008


On Wed, Nov 12, 2008 at 10:20:01AM -0500, Steve West wrote:
> When running on Fedora x86 64 bit do you need to specify -m64 in gcc
> to create 64 bit applications or does it default to 64 bit compile &
> link? 
>
It defaults to 64 bit.

> Also will applications compiled on Fedora x86 32 bit using -m64
> run on Fedora x86 64 bit?
> 
With the possible exception of the kernel, that's unlikely to work at all
since a 32 bit system won't have 64 bit libraries installed to link
against.

Ewan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20081112/ebf6381f/attachment-0001.sig>


More information about the fedora-list mailing list