Skip to content

Instantly share code, notes, and snippets.

@wader
Last active January 22, 2021 11:16
Show Gist options
  • Save wader/fc7a20db438f0ae3ad869590720567e8 to your computer and use it in GitHub Desktop.
Save wader/fc7a20db438f0ae3ad869590720567e8 to your computer and use it in GitHub Desktop.
gcc -mcpu=native debug
See what gcc thinks is native: gcc -Q -mcpu=native --help=target
How native guess works for ARM:
https://github.com/gcc-mirror/gcc/blob/34a6c43487caf3a2a0ec9c7c79c526d116abc8b9/gcc/config/arm/driver-arm.c
https://github.com/gcc-mirror/gcc/blob/16e2427f50c208dfe07d07f18009969502c25dc8/gcc/config/arm/arm-cpus.in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment