compiler-explorer /compiler-explorer
Run compilers interactively from your web browser and interact with the assembly
★ 19,189⑂ 2,172👁 244⑃ 5,464● 4,008▤ 0
+1
Daily
19,189
stars
2,172
forks
244
watchers
5,464
prs
4,008
issues
0
releases
README
Compiler Explorer Compiler Explorer is an interactive compiler exploration website. Edit code in C, C++, C, F, Rust, Go, D, Haskell, Swift, Pascal, ispc, Python, Java, or any of the other 30+ supported languages, and see how that code looks after being compiled in real time. Bug Report · Compiler Request · Feature Request · Language Request · Library Request · Report Vulnerability Overview Multiple compilers are supported for each language, many different tools and visualizations are available, and the UI layout is configurable (thanks to GoldenLayout). Try out at godbolt.org, or run your own local instance. An overview of what the site lets you achieve, why it's useful, and how to use it is available here, or in this talk. 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 are translated to assembly code. It started 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 over 3,000,000 compilations per week. You can financially support this project on Patreon, GitHub, Paypal, or by buying cool gear on the Compiler Explorer store. Using Compiler Explorer FAQ There is now a FAQ section in the repository wiki. If your question is not present, please contact us as described below, so we can help you. If you find that the FAQ is lacking some important point, please feel free to contribute to it and/or ask us to clarify it. Videos Several videos showcase some features of Compiler Explorer: - Compiler Explorer 2023: What's New?: Presentation for CppNorth 2023. - Presentation for CppCon 2019 about the project - Older 2 part series of videos which go into a bit more detail into the more obscure features. - Just Enough Assembly for Compiler Explorer: Practical introduction to Assembly with a focus on the usage of Compiler Explorer, from CppCon 2021. - Playlist: Compiler Explorer: A collection of videos discussing Compiler Explorer; using it, installing it, what it's for, etc. A Road map is available which gives a little insight into the future plans for Compiler Explorer. Developing Compiler Explorer is written in TypeScript, on Node.js. Assuming you have a compatible version of node installed, on Linux simply running make ought to get you up and running with an Explorer running on port 10240 on your local machine: http://localhost:10240/. If this doesn't work for you, please contact us, as we consider it important you can quickly and easily get running. Compiler Explorer requires at least the node version pinned in .node-version (anything newer is fine). We look for it on your PATH, which covers a system install as well as any version manager with shell integration (fnm, asdf, nodenv, volta, or an active nvm). If your PATH node is missing or too old we also try to resolve the version pinned in .node-version via nvm/fnm/nod
Top issues
#5404[REQUEST]: Support C++23 std modules43 comments · 2023-08-22#82C(++) Compiler Master List / A Few more Compilers...39 comments · 2015-08-05#264Add D8 JavaScript assembly output36 comments · 2017-02-08#7239[BUG]: stdout not collected from a crashing execution31 comments · 2024-12-24#3760Would it be possible to get the rustc-cg-gcc for other architectures? Right now it can only generate x86 code.20 comments · 2022-06-10#1524[REQUEST] Enable optimizations for Rust by default19 comments · 2019-08-06#7115[COMPILER REQUEST]: GCC version of "assertion compilers" (--enable-checking=yes,rtl,extra)17 comments · 2024-11-22#975CloudFront bans some countries according to US laws15 comments · 2018-06-27
Discussions
#8944I just came to say thanks.0 comments · 2026-07-22#8446Visual hint for draggable list items - add a ⠿0 comments · 2026-02-06#8415Implement DeepWiki4 comments · 2026-01-28#8393[swift] Thoughts on managing patch release compiler versions1 comments · 2026-01-21#8363Is it possible to recover code from closed tabs?1 comments · 2026-01-02#8320Run compiler explorer with the context from a local repo1 comments · 2025-12-04#8232How exactly do I install a rust crate when running locally?1 comments · 2025-10-31#8222is the arm64-apple-darwin compiler available on the site?1 comments · 2025-10-26