Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
oconnor663
· 3y ago · 0 comments
Why not use -march=native?
Comments
[–]
inopinatus
3y ago
Surprisingly, -march=native doesn’t always expand to the locally optimal build flags we might expect, particularly with gcc on non-Linux platforms.
[–]
oconnor663
OP
3y ago
Oh interesting. Is this one of those things where backwards compatibility eventually got in the way of the intended purpose?
[–]
mattst88
3y ago
I actually do. I just said -march=tigerlake to make it clear what CPU family the compiler was targeting.
[–]
aew4ytasghe5
3y ago
Why not use -march=snark?