Skip to content

Binary

Medium — good to knowGeneral Dev

ELI5 — The Vibe Check

A binary is a file your computer can run directly — it has already been translated from human-readable code into the 1s and 0s the CPU speaks. When you 'compile' code, you turn it into a binary. That is why compiled programs are fast: the computer does not need to translate anything.

Real Talk

A binary (or executable) is a compiled program stored in machine code — the native instruction set of the CPU. Unlike source code, binaries are not human-readable. Compiled languages like C, C++, Go, and Rust produce binaries. The term also refers to the binary number system (base-2) used in all digital computing.

Show Me The Code

# Compile a C program into a binary:
gcc main.c -o my_program

# Run the binary:
./my_program

# Check if a file is a binary:
file my_program
# my_program: Mach-O 64-bit executable x86_64

When You'll Hear This

"Ship the binary, not the source code." / "The build step creates a binary that runs on the server."

Made with passive-aggressive love by manoga.digital. Powered by Claude.