Compiler

In computing, a compiler is a computer program that translates computer code written in one programming language (the source language) into another language (the target language). The name "compiler" is primarily used for programs that translate source code from a high-level programming language to a lower level language (e.g., assembly language, object code, or machine code) to create an executable program.There are many different types of compilers which produce output in different useful forms. A compiler that can run on a computer whose CPU or operating system is different from the one on which the code it produces will run is called a cross-compiler. A bootstrap compiler is written in the language that it intends to compile. A program that translates from a low-level language to a higher level one is a decompiler. A program that translates between high-level languages is usually called a source-to-source compiler or transcompiler. A language rewriter is usually a program that translates the form of expressions without a change of language. The term compiler-compiler refers to tools used to create parsers that perform syntax analysis.
A compiler is likely to perform many or all of the following operations: preprocessing, lexical analysis, parsing, semantic analysis (syntax-directed translation), conversion of input programs to an intermediate representation, code optimization and code generation. Compilers implement these operations in phases that promote efficient design and correct transformations of source input to target output. Program faults caused by incorrect compiler behavior can be very difficult to track down and work around; therefore, compiler implementers invest significant effort to ensure compiler correctness.Compilers are not the only language processor used to transform source programs. An interpreter is computer software that transforms and then executes the indicated operations. The translation process influences the design of computer languages, which leads to a preference of compilation or interpretation. In practice, an interpreter can be implemented for compiled languages and compilers can be implemented for interpreted languages.

View More On Wikipedia.org
  • 85

    Greg Bernhardt

    A PF Singularity From USA
    • Messages
      19,443
    • Media
      227
    • Reaction score
      10,021
    • Points
      1,237
  • 1

    Guidestone

    A PF Atom
    • Messages
      93
    • Reaction score
      5
    • Points
      33
  • 1

    rtareen

    A PF Electron
    • Messages
      162
    • Reaction score
      32
    • Points
      18
  • 1

    22990atinesh

    A PF Electron From India
    • Messages
      143
    • Reaction score
      1
    • Points
      19
  • 1

    pairofstrings

    A PF Cell From India
    • Messages
      411
    • Reaction score
      7
    • Points
      117
  • 1

    Atr cheema

    A PF Atom
    • Messages
      69
    • Reaction score
      0
    • Points
      31
  • 1

    Buffu

    A PF Atom
    • Messages
      849
    • Reaction score
      146
    • Points
      38
  • Back
    Top