शब्दकोश · प्रोग्रामिंग

Compiler

A compiler is a program that translates source code written in a high-level language into machine code or bytecode before the program runs.

अपडेट: अक्टूबर 6, 2026

A compiler is a program that translates source code in a language such as C, Go or Rust into a lower-level form, usually machine code or bytecode, which the computer can execute. Translation happens ahead of time, before the program is run.

Why it matters

Compiled programs generally start fast and run fast because the heavy translation work is already done. The compiler also checks the code and reports many errors, such as type mismatches or missing symbols, before the software reaches users. The trade-off is a build step between writing code and running it.

Example

$ gcc hello.c -o hello
$ ./hello
Hello, world

gcc reads hello.c, produces the executable hello, and you run that file directly. Change the source and you must compile again.

Common mistakes

  • Confusing a compile-time error (the code is rejected) with a runtime error (it fails while running).
  • Treating compiled and interpreted as strict categories; many languages, including Java and C#, compile to bytecode that a runtime then executes.
  • Shipping a build compiled for a different operating system or CPU than the target.

Get notified when this term updates

Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.

यह पेज सामान्य जानकारी है, जिसे हमारी संपादकीय टीम ने लिखा है और दस्तावेज़ीकरण बदलने पर अपडेट किया जाता है। सर्वर और प्रदाता अलग-अलग होते हैं, इसलिए बदलाव पहले सुरक्षित तरीके से जाँचें। देखें: संपादकीय नीति और अस्वीकरण.