Thanks for using Compiler Explorer
C++
LLVM IR
Cppx
Cppx-Gold
Cppx-Blue
C
Rust
D
Go
ispc
Haskell
OCaml
Python
Swift
Pascal
Fortran
Assembly
Analysis
CUDA
Zig
Clean
Ada
Nim
c++ source #1
Output
Compile to binary
Run the compiled output
Intel asm syntax
Demangle identifiers
Filters
Unused labels
Library functions
Directives
Comments
Horizontal whitespace
Compiler
arm gcc 10.2.1
arm gcc 6.2.1
arm gcc 7.3.1
arm gcc 8.2.1
x86-64 clang 9.0.0
x86-64 gcc 10.2.0
Options
Source code
// Type your code here, or load an example. int square(int num) { return num * num; }
Become a Patron
Sponsor on GitHub
Donate via PayPal
Source on GitHub
Mailing list
Installed libraries
Wiki
Report an issue
How it works
Contact the author
About the author
Changelog
Version tree