ARM iwmmxt CFLAGS

Ian Lance Taylor iant@google.com
Thu Jul 14 18:54:00 GMT 2011


Matt Turner <mattst88@gmail.com> writes:

> I'm a bit confused about how CFLAGS related to ARM's iwmmxt
> instruction set extensions are handled.
>
> On x86 to enable SSEx instructions, one would do something like
> -march=... -msse3, but on ARM I must do something like -march=iwmmxt
> (where I'd have expected -march=armv7 -miwmmxt).
>
> What flags would I use to optimize code for armv7 while enabling
> iwmmxt instructions? -march=armv7 -mcpu=iwmmxt?

I think -march=iwmmxt -mtune=armv7.

I agree that this seems a bit odd.


> Also, do I need to do anything with -mabi=iwmmxt? I think not, but..

I don't know.

Ian



More information about the Gcc-help mailing list