27 ms·
I saw that but I am curious whether this is implemented for a compiler, say gcc?
by onurgu 12y ago
I saw that but I am curious whether this is implemented for a compiler, say gcc?
- eslaught 12y agoIt's not built into any compiler, but because it takes x86 machine code as input, that's not really a limitation. You can run any compiler (GCC, LLVM, MSVC, Intel, etc.) and run STOKE on the output to optimize the code. You can even run it on binaries for which you have no access to the source code (e.g. proprietary programs). Given that STOKE takes tens of minutes to optimize a couple dozen lines of assembly, you probably wouldn't want to include it as a general compiler optimization. If you want the performance badly enough to use this tool, you are probably willing to run a profiler to find the hotspots and focus the tool on those specifically (which is how this tool is meant to be run). That said, there are alternatives which are able to run at closer to normal compiler speeds, such as the peephole superoptimizer: http://theory.stanford.edu/~aiken/publications/papers/osdi08.pdf http://theory.stanford.edu/~aiken/publications/papers/osdi08...