# Compiled Language

> A language turned into machine code first, then run. A build step, then a fast program.

**Field:** Software Development  
**Category:** Languages

## Think of it like

Think of it like a book that is all put into French before anyone reads it. That takes time, then reading is quick.

## Definition

A compiled language is turned into machine code before it runs. A tool called a compiler reads all the source code and builds a file the computer can run directly. C, C++, Rust and Go work this way. The build step takes time, but the result usually runs fast. The compiler also catches many mistakes before the program ever starts.

## Example

Jack builds his Go program once into one file. He copies that file to a server, and it runs there without Go installed.

## Example code

```console
$ gcc hello.c -o hello
$ ./hello
Hello, world!
```

First the code is built into a program. Then the program runs on its own.

## Why it matters

They are often fast and easy to ship as one file. Many bugs show up before users see them.

## Common mistake

Thinking a compiled program runs on every machine. It is built for one kind of system and must be rebuilt for others.

## Three principles

- **Build, then run.** The whole program is turned into machine code first.
- **Fast result.** The machine runs it with no translator.
- **Early errors.** Many mistakes are caught at build time.

## Related terms

- [Interpreted Language](https://learn.benibix.com/term/development/interpreted-language)
- [Programming Language](https://learn.benibix.com/term/development/programming-language)
- [C](https://learn.benibix.com/term/development/c-language)
- [Rust](https://learn.benibix.com/term/development/rust)
- [Go](https://learn.benibix.com/term/development/go-language)

## Told apart from

- [Compiled vs Interpreted Language](https://learn.benibix.com/compare/compiled-vs-interpreted-language): A compiled language is built into a program before it runs. An interpreted one is read and run line by line as it goes.

## Taught in

- [Compilers and Interpreters](https://learn.benibix.com/learn/development-languages/compilers-and-interpreters): Programming Languages, 2/12

---

Source: https://learn.benibix.com/term/development/compiled-language
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
