public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Which -march option to use for a generic 64-bit cpu?
@ 2012-01-21 16:53 Erik Leunissen
  2012-01-21 17:22 ` Jonathan Wakely
  0 siblings, 1 reply; 7+ messages in thread
From: Erik Leunissen @ 2012-01-21 16:53 UTC (permalink / raw)
  To: gcc-help

L.S.

I'd like to generate code that runs on a selection of common 64-bit 
cpu's, both Intel and AMD[*].

     [*] Aside: I'm not yet entirely sure yet about the final selection 
of architectures, but in any case I would like to support core2, atom, 
athlon64 (not yet sure about opteron and AMD multicore cpu's).

To that end, I've been looking in the list of "-march" options to gcc 
for a specific option that indicates such a common set of architectures 
(much like "-march=i686" for 32-bit architectures).

I remain confused about how to do this for 64-bit cpu's. I found several 
options indicating specific cpu's that I'd like to run my code on. 
However, I guess that I'm clueless about "backward compatibility" of 
(closely) related 64-bit cpu types (like i386 code being supported by 
i686 with 32-bit cpu's). Also, I'm unsure about the differences between 
AMD and Intel in this regard.

- Do options indicating such a generic 64-bit cpu exist?, or
- Can I specifiy multiple -march options in one compile command?, or
- Do I need to compile separately for each 64-bit architecture?, or
- ... ?

I'd appreciate very much any directions about how to proceed.


Thanks for any insight,

Erik Leunissen.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-01-21 22:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-21 16:53 Which -march option to use for a generic 64-bit cpu? Erik Leunissen
2012-01-21 17:22 ` Jonathan Wakely
2012-01-21 17:26   ` Jonathan Wakely
2012-01-21 17:31   ` Erik Leunissen
2012-01-21 17:48     ` Tim Prince
2012-01-21 22:20     ` Jonathan Wakely
2012-01-21 22:35       ` Erik Leunissen

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).