3 ms·
dont you want the compiler to do this for you, with ARCH flags? a bit of foresight and a little checking seems like enough.. excessive ASM is a mistake these d
by mistrial9 8y ago
dont you want the compiler to do this for you, with ARCH flags? a bit of foresight and a little checking seems like enough.. excessive ASM is a mistake these days
CXXFLAGS -march=sandybridge -mtune=sandybridge
- saagarjha 8y agoThe point is that the compiler does not have enough information to do this automatically.
- mistrial9 8y ago.. meant to say, after rewriting code to avoid (this,that) extra actions, then let the compiler make the optimized code.. not saying "just re-run the old code with CFLAGS thus" ..
- romka2 8y agoWhat part of the code do you expect to get faster with `-march=sandybridge -mtune=sandybridge`? > excessive ASM is a mistake these days There is no ASM in the article.