Skip to content

Instantly share code, notes, and snippets.

@aktau
Last active December 16, 2015 15:49
Show Gist options
  • Save aktau/5458538 to your computer and use it in GitHub Desktop.
Save aktau/5458538 to your computer and use it in GitHub Desktop.
GCC check capabilities of platform and compare side-by-side:
# source: http://forums.gentoo.org/viewtopic-p-6242890.html
# diff --side-by-side <(gcc -Q --help=target -march=atom) <(gcc -Q --help=target -march=native)
# core2 and atom seem to be quite similar in capabilities, through probably
# not in tuning
-O2 \
-march=core2 \
-funswitch-loops \
-ftree-vectorize \
-fomit-frame-pointer \
-mfpmath=sse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment