* Option to compile for both AMD64 and EM64T?
@ 2004-08-31 16:34 Justin Palmer
2004-09-01 0:08 ` [Patch ping] was: " Kelley Cook
0 siblings, 1 reply; 2+ messages in thread
From: Justin Palmer @ 2004-08-31 16:34 UTC (permalink / raw)
To: gcc
Hi,
Since the differences between AMD64 and EM64T are minor, will GCC have an option to compile applications for both?
Linux-Kernel Archive reference:
http://www.ussg.iu.edu/hypermail/linux/kernel/0402.3/0276.html
Currently, the -mtune, -march, and -mcpu values must specify one of: nocona, k8, opteron, athlon64, or athlon-fx. My software group has been using i686 to build one executable for both Intel and AMD 32-bit processors and would like to build one executable for their 64-bit processors.
Also, do the docs need updated for -m64 or is that option really for AMD64 only?
Thanks,
Justin
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Patch ping] was: Option to compile for both AMD64 and EM64T?
2004-08-31 16:34 Option to compile for both AMD64 and EM64T? Justin Palmer
@ 2004-09-01 0:08 ` Kelley Cook
0 siblings, 0 replies; 2+ messages in thread
From: Kelley Cook @ 2004-09-01 0:08 UTC (permalink / raw)
To: gcc; +Cc: gcc-patches
Justin Palmer wrote:
> Hi,
>
> Since the differences between AMD64 and EM64T are minor, will GCC have an option to compile applications for both?
>
> Linux-Kernel Archive reference:
> http://www.ussg.iu.edu/hypermail/linux/kernel/0402.3/0276.html
>
> Currently, the -mtune, -march, and -mcpu values must specify one of: nocona, k8, opteron, athlon64, or athlon-fx. My software group has been using i686 to build one executable for both Intel and AMD 32-bit processors and would like to build one executable for their 64-bit processors.
>
> Also, do the docs need updated for -m64 or is that option really for AMD64 only?
With the experimental GCC 3.5, -march=x86-64 does what you want. You
probably could backport the patch to GCC 3.4 without much problem.
And the reminds of a patch that I submitted a while ago which resets the
default x86 complier to the generic version for same reason you mentioned.
Could someone review
http://gcc.gnu.org/ml/gcc-patches/2004-05/msg00352.html?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-09-01 0:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-31 16:34 Option to compile for both AMD64 and EM64T? Justin Palmer
2004-09-01 0:08 ` [Patch ping] was: " Kelley Cook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).