compiler


Also found in: Dictionary, Thesaurus, Medical, Legal, Financial, Acronyms, Wikipedia.
Related to compiler: linker, Java compiler

compiler

a computer program by which a high-level programming language, such as COBOL or FORTRAN, is converted into machine language that can be acted upon by a computer
Collins Discovery Encyclopedia, 1st edition © HarperCollins Publishers 2005

compiler

[kəm′pīl·ər]
(computer science)
A program to translate a higher programming language into machine language. Also known as compiling routine.
McGraw-Hill Dictionary of Scientific & Technical Terms, 6E, Copyright © 2003 by The McGraw-Hill Companies, Inc.

compiler

(programming, tool)
A program that converts another program from some source language (or programming language) to machine language (object code). Some compilers output assembly language which is then converted to machine language by a separate assembler.

A compiler is distinguished from an assembler by the fact that each input statement does not, in general, correspond to a single machine instruction or fixed sequence of instructions. A compiler may support such features as automatic allocation of variables, arbitrary arithmetic expressions, control structures such as FOR and WHILE loops, variable scope, input/ouput operations, higher-order functions and portability of source code.

AUTOCODER, written in 1952, was possibly the first primitive compiler. Laning and Zierler's compiler, written in 1953-1954, was possibly the first true working algebraic compiler.

See also byte-code compiler, native compiler, optimising compiler.
This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)

compiler

(1) Software that converts a set of high-level language statements into a lower-level representation. For example, a help compiler converts a text document embedded with appropriate commands into an online help system. A dictionary compiler converts terms and definitions into a dictionary lookup system.

(2) Software that translates a program written in a high-level programming language (C/C++, COBOL, etc.) into machine language. A compiler usually generates assembly language first and then translates the assembly language into machine language. A utility known as a "linker" then combines all required machine language modules into an executable program that can run in the computer. See optimizing compiler.

The following is a conceptual example of source code being converted to assembly language and machine code by the compiler:

Source Code
  IF COUNT=10
  GOTO END-OF-JOB
   ELSE
  GOTO COMPUTE-AGAIN
  ENDIF

  Assembly Language  Machine Language
  Compare A to B     Compare 3477 2883
  If equal go to C   If = go to 23732
  Go to D            Go to 23119

  Machine Code
  10010101001010001010100
  10101010010101001001010
  10100101010001010010010




From C to Assembly Language
A C/C++ compiler converts C and C++ code into assembly language as shown in this example. The red arrows point to various function calls, and the assembly code to perform those calls follows each statement.







Compilers and Interpreters
Compiled programs (right) are translated into the machine language of the target computer. Interpreted programs (left and center) are either kept in their original source code or are precompiled into an intermediate form. In both cases, an interpreter is required to translate the program into machine language at runtime, whereas the compiled program is "ready to go."
Copyright © 1981-2019 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.
References in periodicals archive ?
How compilers for embedded processors differ from compiler for general purpose processors is subject of research in [5-7].
Free GNU-based OpenACC compilers are under development, which means the global developer community will soon be able to test the reality of a single, portable "from sequential to massively parallel" source base.
- Eclipse IDE with integrated compiler and simulator
According to the company, the ARM DS-5 Professional Edition builds on the success of the ARM Compiler, integrating it in a suite of Eclipse-based software development tools, including the DS-5 Debugger and Streamline Performance Analyzer.
The Portland Group (PGI), Portland, Ore., a wholly-owned subsidiary of STMicroelectronics and the leading independent supplier of compilers and tools for high-performance computing, has announced the general availability of PGI Visual Fortran (PVF) for Visual Studio 2010.
Summary: PGI CUDA Fortran Compiler enables programmers to write code in Fortran for NVIDIA CUDA GPUs
Included is everything necessary to build and run multi-threaded applications, including: programmer's editor, compiler, graphical debugger, graphical integrated development environment, math libraries and graphics -- nothing else to buy or learn.
The award pays tribute to her "for pioneering contributions to the theory and practice of optimizing compiler techniques that laid the foundation for modern optimizing compilers and automatic parallel execution," programs that translate one computer language into another.
That is one of the key predictions from the compiler of a new book charting the fortunes and misfortunes of the UK's top movers and losers.
This second volume in the series describes methods for choosing high-level language (HLL) statements to create the most efficient machine code when using a modern optimizing compiler. Written for experienced programmers, the book provides an overview of 80x86 and PowerPC assembly language.
has used Synopsys' IC Compiler next- generation place-and-route system to tape out a 90-nanometer (nm) multi-core DSP system-on-chip (SoC) for telecom applications.