This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Automatic architecture optimization


Rainer Orth wrote:
prj@po.cwru.edu (Paul Jarc) writes:
... I'd prefer syntax like -march=current or some such.

Sun cc has -xarch=native, Compaq cc uses -arch host. Btw., both have also (as default) -xarch=generic or -arch generic, which is contrary to GCC's practice (on some platforms) to configure and thus generate code for the host one happens to bootstrap the compiler on.

Any of -march = {current, host, native, auto} seem fine to me. IMHO, a detail to be resolved when it works.


As another datapoint, IBM's xlc/xlf has -qarch=auto, which is off by default (except at -O4 or -O5) and thus produces code for any Power or PowerPC processor.


- Matt




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]