Thanks for using Compiler Explorer
Sponsors
Jakt
C++
Ada
Analysis
Android Java
Android Kotlin
Assembly
C
C3
Carbon
C++ (Circle)
CIRCT
Clean
CMake
CMakeScript
COBOL
C++ for OpenCL
MLIR
Cppx
Cppx-Blue
Cppx-Gold
Cpp2-cppfront
Crystal
C#
CUDA C++
D
Dart
Elixir
Erlang
Fortran
F#
GLSL
Go
Haskell
HLSL
Hook
Hylo
IL
ispc
Java
Julia
Kotlin
LLVM IR
LLVM MIR
Modula-2
Nim
Objective-C
Objective-C++
OCaml
OpenCL C
Pascal
Pony
Python
Racket
Ruby
Rust
Snowball
Scala
Solidity
Spice
SPIR-V
Swift
LLVM TableGen
Toit
TypeScript Native
V
Vala
Visual Basic
Vyper
WASM
Zig
Javascript
GIMPLE
Ygen
objc source #1
Output
Compile to binary object
Link to binary
Execute the code
Intel asm syntax
Demangle identifiers
Verbose demangling
Filters
Unused labels
Library functions
Directives
Comments
Horizontal whitespace
Debug intrinsics
Compiler
ARM gcc 12.2.0
ARM gcc 12.3.0
ARM gcc 12.4.0
ARM gcc 13.1.0
ARM gcc 13.2.0
ARM gcc 13.3.0
ARM gcc 14.1.0
ARM gcc 14.2.0
ARM gcc trunk (linux)
ARM64 GCC 12.2.0
ARM64 GCC 12.3.0
ARM64 GCC 12.4.0
ARM64 GCC 13.1.0
ARM64 GCC 13.2.0
ARM64 GCC 13.3.0
ARM64 GCC 14.1.0
ARM64 GCC 14.2.0
ARM64 GCC trunk
MIPS64 gcc 12.2.0
MIPS64 gcc 12.3.0
MIPS64 gcc 12.4.0
MIPS64 gcc 13.1.0
MIPS64 gcc 13.2.0
MIPS64 gcc 13.3.0
MIPS64 gcc 14.1.0
MIPS64 gcc 14.2.0
POWER GCC 12.2.0
POWER GCC 12.3.0
POWER GCC 12.4.0
POWER GCC 13.1.0
POWER GCC 13.2.0
POWER GCC 13.3.0
POWER GCC 14.1.0
POWER GCC 14.2.0
POWER64 GCC 12.2.0
POWER64 GCC 12.3.0
POWER64 GCC 12.4.0
POWER64 GCC 13.1.0
POWER64 GCC 13.2.0
POWER64 GCC 13.3.0
POWER64 GCC 14.1.0
POWER64 GCC 14.2.0
POWER64 GCC trunk
POWER64LE GCC 12.2.0
POWER64LE GCC 12.3.0
POWER64LE GCC 12.4.0
POWER64LE GCC 13.1.0
POWER64LE GCC 13.2.0
POWER64LE GCC 13.3.0
POWER64LE GCC 14.1.0
POWER64LE GCC 14.2.0
POWER64LE GCC trunk
RISC-V 32 GCC (trunk)
RISC-V 32 GCC 12.2.0
RISC-V 32 GCC 12.3.0
RISC-V 32 GCC 12.4.0
RISC-V 32 GCC 13.1.0
RISC-V 32 GCC 13.2.0
RISC-V 32 GCC 13.3.0
RISC-V 32 GCC 14.1.0
RISC-V 32 GCC 14.2.0
RISC-V 64 GCC (trunk)
RISC-V 64 GCC 12.2.0
SPARC LEON gcc 12.2.0
SPARC LEON gcc 12.3.0
SPARC LEON gcc 12.4.0
SPARC LEON gcc 13.1.0
SPARC LEON gcc 13.2.0
SPARC LEON gcc 13.3.0
SPARC LEON gcc 14.1.0
SPARC LEON gcc 14.2.0
SPARC gcc 12.2.0
SPARC gcc 12.3.0
SPARC gcc 12.4.0
SPARC gcc 13.1.0
SPARC gcc 13.2.0
SPARC gcc 13.3.0
SPARC gcc 14.1.0
SPARC gcc 14.2.0
SPARC64 gcc 12.2.0
SPARC64 gcc 12.3.0
SPARC64 gcc 12.4.0
SPARC64 gcc 13.1.0
SPARC64 gcc 13.2.0
SPARC64 gcc 13.3.0
SPARC64 gcc 14.1.0
SPARC64 gcc 14.2.0
VAX gcc NetBSDELF 10.4.0
VAX gcc NetBSDELF 10.5.0 (Nov 15 03:50:22 2023)
hppa gcc 14.2.0
loongarch64 gcc 12.2.0
loongarch64 gcc 12.3.0
loongarch64 gcc 12.4.0
loongarch64 gcc 13.1.0
loongarch64 gcc 13.2.0
loongarch64 gcc 13.3.0
loongarch64 gcc 14.1.0
loongarch64 gcc 14.2.0
mips (el) gcc 12.2.0
mips (el) gcc 12.3.0
mips (el) gcc 12.4.0
mips (el) gcc 13.1.0
mips (el) gcc 13.2.0
mips (el) gcc 13.3.0
mips (el) gcc 14.1.0
mips (el) gcc 14.2.0
mips gcc 12.2.0
mips gcc 12.3.0
mips gcc 12.4.0
mips gcc 13.1.0
mips gcc 13.2.0
mips gcc 13.3.0
mips gcc 14.1.0
mips gcc 14.2.0
mips64 (el) gcc 12.2.0
mips64 (el) gcc 12.3.0
mips64 (el) gcc 12.4.0
mips64 (el) gcc 13.1.0
mips64 (el) gcc 13.2.0
mips64 (el) gcc 13.3.0
mips64 (el) gcc 14.1.0
mips64 (el) gcc 14.2.0
s390x gcc 12.2.0
s390x gcc 12.3.0
s390x gcc 12.4.0
s390x gcc 13.1.0
s390x gcc 13.2.0
s390x gcc 13.3.0
s390x gcc 14.1.0
s390x gcc 14.2.0
x86-64 gcc (trunk)
x86-64 gcc 10.5
x86-64 gcc 11.4
x86-64 gcc 12.2
x86-64 gcc 12.3
x86-64 gcc 12.4
x86-64 gcc 13.1
x86-64 gcc 13.2
x86-64 gcc 13.3
x86-64 gcc 14.1
x86-64 gcc 14.2
x86-64 gcc 3.4.6
x86-64 gcc 4.0.4
x86-64 gcc 6.5.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
CE on Mastodon
CE on Bluesky
About the author
Statistics
Changelog
Version tree