Compiler Explorer
More info
- Creator
- Matt Godbolt
- Released
- Type
- Web tool
- Website
- godbolt.org
- Source
- GitHub
The web service where you type code in one pane and watch the compiler's assembly appear in the other, line-matched and color-coded.
Matt Godbolt built it in 2012 to settle an argument with colleagues about whether a particular C++ construct actually cost anything. The answer was right there in the assembly, and the tool spread. Today the site hosts thousands of compiler versions for dozens of languages — GCC, Clang, MSVC, rustc, Go and stranger things — and can show the intermediate representation after each optimization pass.
It has become the standard exhibit in any performance argument: a godbolt.org link usually ends a thread faster than ten posts about what the compiler "should" do. Watching an entire loop vanish under -O2 teaches the as-if rule better than any textbook example. As a bonus, Godbolt's surname has become a verb.