Skip to content
Sign in
Computer PPSC

What does a compiler do?

Tap an option to check the answer. You can also press A–D.

Explanation
A compiler is a program that converts (translates) high-level source code written by programmers into machine code that the computer's processor can execute. It processes the whole program at once, unlike an interpreter, which translates line by line. Related facts: Examples of compiled languages: C, C++, Rust. An interpreter translates and executes code line by line (e.g., Python in interactive mode). Exam tip: Do not confuse the distractors: converting code is the compiler's job; registering and processing are not.