Thanks for using Compiler Explorer
C++
CMake
c++ 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
clang 15
clang 15 x86
clang 16
clang 16 x86
clang 17
clang 17 x86
clang 18
clang 18 x86
g++ 12
g++ 12 x86
g++ 13
g++ 13 x86
g++ 14
g++ 14 x86
Options
Source code
// Type your code here, or load an example. int square(int num) { return num * num; }