Compiler Explorer, sometimes referred to as godbolt.org, is an interactive compiler exploration website. It allows the user to enter code in one of the supported languages, select a compiler and view the resulting assembly. Optionally, Compiler Explorer can also execute the code and show the output. Use this tag for questions regarding the use and results of Compiler Explorer, and not simply because a code snippet is hosted there.
Compiler Explorer is an interactive compiler exploration website. Edit code in C, C++, Rust, Go, D, Haskell, Swift, Pascal, ispc, Python, Java or in any of the other 31 supported languages, and see how that code looks after being compiled in real time. Multiple compilers are supported for each language, many different tools and visualisations are available, and the UI layout is configurable (thanks to GoldenLayout).
Try out at godbolt.org, or run your own local instance.
Compiler Explorer follows a Code of Conduct which aims to foster an open and welcoming environment.
Compiler Explorer was started in 2012 to show how C++ constructs translated to assembly code. It started out as a tmux session with vi running in one pane and watch gcc -S foo.cc -o -
running in the other.
Since then, it has become a public website serving around 2,250,000 compilations per week.
Source: Compiler Explorer on GitHub