Re: is CPU max features automatic for all -m options ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 19 Jul 2023 at 15:16, Budi via Gcc-help <gcc-help@xxxxxxxxxxx> wrote:
>
> Are all CPU superset  features which accord to -m options
> automatically put and set by gcc when gcc has -march=native (or

Not all sets, no. Only the ones supported by your CPU on the machine
you're compiling on.

> specific else), if no, how a convenient way to put them automatically
> ?
>
> as on GCC doc.
> eg
> -march=bdever1
> has supersets
>  FMA4, AVX, XOP, LWP, AES, PCLMUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
>  SSE4.1, SSE4.2, ABM and 64-bit instruction set extensions
>
> the features which  accord to e.g. -m option of
>
> -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2
>
> how to  automatically conveniently put ie. set them all ?

What do you mean by "all"? To enable all the ones shown above, use -march=bdver1

To enable all instructions supported by the machine you're compiling
on, use -march=native



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux