f7 32bit/64bit compiles.

Sam Varshavchik mrsam at courier-mta.com
Wed Jul 18 23:31:22 UTC 2007


clemens at dwf.com writes:

> OK, a dumb question, but Ive always just assumed that all my machines were
> 32bit, and ignored 64bit stuff.
> 
> Now more than 1/2 are 64bit.
> 
> So the dumb question: How do you compile in 64bit mode?
> Im sure its there in the gcc man page, but after scanning the first
> 20-30pages Im about to go to sleep...
> 
> And, is there some place to put this so that gcc ALWAYS compiles
> in 64bit mode?  Or does so by default.

On 64 bit machines, gcc compiles by default to 64 bit code.

> Or does gcc look at the machine architecture and make a decision on
> its own.

On 64 bit Fedora, gcc by default compiles to 64 bit. That's it.

> So, a quick discussion of the niceties of 32/64bit compiling would be
> appreciated.

There's nothing really to discuss. On PowerPC-based hardware, gcc compiles, 
by default, to powerpc code. On 32 bit Intel, to 32 bit Intel code, on 64 
bit Intel, to 64 bit Intel. That's it.


-------------- 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/20070718/7eec347e/attachment-0001.sig>


More information about the fedora-list mailing list