New Linux Patch Establishes "CONFIG_X86_64_NATIVE" For -march=native Kernel Builds

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • craftkiller
    Junior Member
    • Dec 2024
    • 1

    #11
    Originally posted by ahrs View Post

    It would be a cool feature if /proc/cpuinfo could list the micro-architecture name that GCC would report for -march=native
    This works using clang:
    Code:
    clang -v -fsyntax-only -march=native -x c /dev/null 2>&1 | grep -e '-target-cpu' | sed -e 's|.*-target-cpu \([[:alnum:]]*\) .*|\1|'

    Comment

    Working...
    X