Thanks for using Compiler Explorer
Sponsors
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
go 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
386 gc (tip)
386 gc 1.14
386 gc 1.15
ARM gc (tip)
ARM gc 1.14
ARM gc 1.15
ARM64 gc (tip)
ARM64 gc 1.14
ARM64 gc 1.15
MIPS gc (tip)
MIPS gc 1.14
MIPS gc 1.15
MIPS64 gc (tip)
MIPS64 gc 1.14
MIPS64 gc 1.15
MIPS64LE gc (tip)
MIPS64LE gc 1.14
MIPS64LE gc 1.15
MIPSLE gc (tip)
MIPSLE gc 1.14
MIPSLE gc 1.15
PPC64 gc (tip)
PPC64 gc 1.14
PPC64 gc 1.15
PPC64LE gc (tip)
PPC64LE gc 1.14
PPC64LE gc 1.15
RISCV64 gc (tip)
RISCV64 gc 1.14
RISCV64 gc 1.15
S390X gc (tip)
S390X gc 1.14
S390X gc 1.15
WASM gc (tip)
WASM gc 1.14
WASM gc 1.15
amd64 gc (tip)
amd64 gc 1.10
amd64 gc 1.10.1
amd64 gc 1.11
amd64 gc 1.12
amd64 gc 1.13
amd64 gc 1.14
amd64 gc 1.15
amd64 gc 1.4.1
amd64 gc 1.7.2
amd64 gc 1.8.5
amd64 gc 1.8.7
amd64 gc 1.9.2
amd64 gc 1.9.4
power64 AT12.0
power64 AT13.0
power64le AT12.0
power64le AT13.0
x86 gccgo 10.2.0
x86 gccgo 4.9.4
x86 gccgo 6.3.0
x86 gccgo 7.2.0
x86 gccgo 8.3.0
x86 gccgo 9.3.0
Options
Source code
package main import "math/bits" func silly() int { return bits.OnesCount64(1) + bits.OnesCount64(2) } func main() {}
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