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
Odin
OpenCL C
Pascal
Pony
Python
Racket
Ruby
Rust
Snowball
Scala
Slang
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.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
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
HPPA gcc 14.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.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.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
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
POWERPC GCC 12.3.0
POWERPC GCC 12.4.0
POWERPC GCC 13.1.0
POWERPC GCC 13.2.0
POWERPC GCC 13.3.0
POWERPC GCC 14.1.0
POWERPC GCC 14.2.0
POWERPC64 GCC 12.3.0
POWERPC64 GCC 12.4.0
POWERPC64 GCC 13.1.0
POWERPC64 GCC 13.2.0
POWERPC64 GCC 13.3.0
POWERPC64 GCC 14.1.0
POWERPC64 GCC 14.2.0
POWERPC64 GCC trunk
POWERPC64LE GCC 12.3.0
POWERPC64LE GCC 12.4.0
POWERPC64LE GCC 13.1.0
POWERPC64LE GCC 13.2.0
POWERPC64LE GCC 13.3.0
POWERPC64LE GCC 14.1.0
POWERPC64LE GCC 14.2.0
POWERPC64LE GCC trunk
RISC-V 32 GCC (trunk)
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.3.0
RISC-V 64 GCC 12.4.0
RISC-V 64 GCC 13.1.0
RISC-V 64 GCC 13.2.0
RISC-V 64 GCC 13.3.0
RISC-V 64 GCC 14.1.0
RISC-V 64 GCC 14.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
objcpploongarch64g1410
objcpploongarch64g1420
x86-64 gcc (trunk)
x86-64 gcc 10.5
x86-64 gcc 10.5 (assertions)
x86-64 gcc 11.4
x86-64 gcc 11.4 (assertions)
x86-64 gcc 12.2
x86-64 gcc 12.2 (assertions)
x86-64 gcc 12.3
x86-64 gcc 12.3 (assertions)
x86-64 gcc 12.4
x86-64 gcc 12.4 (assertions)
x86-64 gcc 13.1
x86-64 gcc 13.1 (assertions)
x86-64 gcc 13.2
x86-64 gcc 13.2 (assertions)
x86-64 gcc 13.3
x86-64 gcc 13.3 (assertions)
x86-64 gcc 14.1
x86-64 gcc 14.1 (assertions)
x86-64 gcc 14.2
x86-64 gcc 14.2 (assertions)
Options
Source code
char* x = new char[]{@encode(int)}; char* y = new char[](@encode(int));
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