37 ms·
> You can use the `-march` flag for your compiler to target specific architectures, for instance -march=tigerlake or -march=znver3 Note that -march will use in
by jmgao 5y ago
> You can use the `-march` flag for your compiler to target specific architectures, for instance -march=tigerlake or -march=znver3
Note that -march will use instructions that might be unavailable on other CPUs of the target. -mtune (which is implied by -march) is the flag that sets the cost tables used by instruction selection, cache line sizes, etc.
- jiggawatts 5y agoI recently watched the CppCon 2019 talk by Matt Godbolt "Compiler Explorer: Behind The Scenes"[1], and a cool feature he presented is the integrated LLVM Machine Code Analyser tool. If you look at the "timeline" and "resource" views of how a Zen 3 executes a typical assembly snippet, it is absolutely mind blowing. That beast of a CPU has so many resources it's just crazy. [1] https://www.youtube.com/watch?v=kIoZDUd5DKw https://www.youtube.com/watch?v=kIoZDUd5DKw