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
TypeScriptBSD-2-ClauseCreated 2012-05-23godbolt.org
+1
日增长
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

Discussions

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON