translator
in English: compiler
A compiler is a program that transforms human-written code into a form executable by the computer, most often into machine code.
In plain terms
Programmers do not work with zeros and ones, but with programming languages that resemble a mix of English words and mathematical notation. The machine, however, does not understand this: it requires very simple instructions encoded into numbers. The compiler bridges this gap.
It is like a book translator: it receives the full manuscript, translates the whole thing at once, and from then on anyone can read the finished volume without the translator's presence. The translated program runs independently in the same way and is typically fast because the translation work was done in advance.
The compiler is also a strict proofreader: if the code breaks the language's rules, for example it contains a typo or tries to perform an operation on incompatible data, the compiler does not build the program but reports in an error message where the problem lies. Many errors are thus caught before the program even starts.
Its role has remained in the AI era. Code written by a coding agent must still be compiled, and the compiler's error messages provide immediate feedback to the agent on what needs to be fixed.
How it works
- Reading in: the compiler breaks the source code text into elementary pieces (words, numbers, punctuation), just as you split a sentence into words.
- Structural analysis (parsing): checks whether the pieces (tokens) combine according to the rules of the language and builds a tree-like outline of the program's structure from them.
- Semantic check: verifies that the code makes sense, for example that you are not trying to divide text by a number or using a name you never defined anywhere; if it finds an error, it reports it and does not produce a program.
- Optimization: it transforms the program so that it does the same thing but faster or with less memory, for example by skipping unnecessary steps.
- Code generation: produces machine code for a specific processor and operating system; this becomes the executable file. For some languages, intermediate code is generated instead, which is executed by a separate runtime program.
An everyday example
When you download an application to your phone, you receive the compiled version, not the source code written by developers. This is why a separate version of the same program is created for Windows, Mac, and phones: each machine requires compiling into different machine code.
Who is affected
A common misconception
Limits and risks
- The translator does not detect reasoning errors: if you wrote a wrong formula into the code, it translates it without comment.
- A compiled program usually works only on the processor type and operating system it was built for.
- For large programs, compilation can take minutes or even hours, slowing down development.
- Code written by a coding agent is not necessarily correct or secure just because it compiles; it does not replace review and testing.
Similar, but not the same
- interpreter – An interpreter does not produce a ready-made program in advance but executes the code step by step at runtime, like a human interpreter translating sentence by sentence. The boundary is not sharp: many modern languages mix the two methods.
- machine translation – Machine translation translates between human languages (for example, from English to Hungarian), while a compiler translates from a programming language to machine code.
- coding agent – The coding agent writes or modifies source code based on your request, while the compiler converts already written code into an executable program according to rules, always in the same way.
Related concepts
development tool, software development, programming
just-in-time (JIT) compilation, cross-compiler
interpreter, source code, machine code, programming language, debugging, optimization, build
A brief history
The first program considered a compiler, the A-0 system, was created by American mathematician and computer scientist Grace Hopper in 1952, and the modern computer science usage of the word 'compiler' is also attributed to her. The A-0 system assembled pre-made program parts more than it translated in the modern sense. The first widely used, full-fledged compiler was the IBM FORTRAN compiler, developed by John Backus's team and released in 1957.
Where things stand
The compiler has been one of the basic tools of software development for decades. At the end of 2026, coding agents also run it routinely and fix their own code based on its error messages.
In the news
- 45% of workers use shadow AI, and many hide it from their bossesOct 19, 2026 · Work & HR
- Atomic Machines emerges from stealth with $250 million for AI-native micro-machine manufacturingOct 7, 2026 · Ipar
- Oracle cloud layoffs hit Software Developer III roles hardest, Business Insider reportsSep 22, 2026 · Code
- A Google a Gemini 3.8 Flash modellt hozza az AI Mode-baSep 21, 2026 · Marketing
- US AI regulation: 60+ state rules, California amendment, dispute over federal preemptionAug 26, 2026 · Jog
Also known as
translator · compiler · compiler · compiler · kompiler · compiler · compilation
This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.