Thanks for using Compiler Explorer
C++
LLVM IR
MLIR
Cppx
Cppx-Gold
Cppx-Blue
C
OpenCL C
C++ for OpenCL
Rust
D
Erlang
Go
ispc
Haskell
Java
Kotlin
Scala
OCaml
Python
Swift
Pascal
Fortran
Assembly
Analysis
CUDA C++
Zig
Clean
Ada
Nim
Crystal
C++ (Circle)
Ruby
CMake
C#
F#
Visual Basic
Dart
TypeScript Native
Solidity
c source #1
Output
Compile to binary
Execute the code
Intel asm syntax
Demangle identifiers
Filters
Unused labels
Library functions
Directives
Comments
Horizontal whitespace
Compiler
gcc-10.4.0-elf
gcc-11.2.0b
gcc-11.3.0-elf
gcc-12.2.0-elf
gcc-13.1.0a
gcc-13.2.0-elf
gcc-2.95.3-elf
gcc-4.3.2-elf
gcc-4.9.4-elf
gcc-6.5.0-elf
gcc-6.5.0b
sasc-6.58
vbcc-0.9h
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