Source-to-source compiler

Source-to-source compiler

A "source-to-source compiler" is a type of compiler that takes a high level language as its input and outputs a high level language. For example, an automatic parallelizing compiler will frequently take in a high level language program as an input and then transform the code and annotate it with parallel code annotations (e.g. OpenMP) or language constructs (e.g. Fortran's DOALL statements).

Another purpose of source-to-source-compiling is translating legacy code to use the next version of the underlying programming language or an API that breaks backwards compatibility. Examples of this are seen in Python 3000 or Qt's [http://doc.trolltech.com/4.0/qt3to4.html#qt3to4 qt3to4] tool.

ee also

* Program transformation

References

* [http://www.compilers.net/paedia/compiler/index.htm Types of compilers]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Compiler optimization — is the process of tuning the output of a compiler to minimize or maximize some attributes of an executable computer program. The most common requirement is to minimize the time taken to execute a program; a less common one is to minimize the… …   Wikipedia

  • Compiler construction — is an area of computer science that deals with the theory and practice of developing programming languages and their associated compilers. The theoretical portion is primarily concerned with syntax, grammar and semantics of programming languages …   Wikipedia

  • Compiler — This article is about the computing term. For the anime, see Compiler (anime). A diagram of the operation of a typical multi language, multi target compiler A compiler is a computer program (or set of programs) that transforms source code written …   Wikipedia

  • Source Mage — Famille GNU/Linux Type de noyau Monolithique modulaire État du projet en développement Plates formes i386, x86 64, PowerPC Licence GNU GPL …   Wikipédia en Français

  • Compiler Description Language — Compiler Description Language, or CDL, is a Computer language based on affix grammars. It is very similar to Backus–Naur form(BNF) notation. It was designed for the development of compilers. It is very limited in its capabilities and control… …   Wikipedia

  • Source (game engine) — Source engine …   Wikipedia

  • source code — A computer program written in its original programming language. In source code form a program is intelligible to a suitably trained human being. To be intelligible to a machine it is translated (compiled) into object code. + source code USA The… …   Law dictionary

  • Compiler correctness — In computing, compiler correctness is the branch of software engineering that deals with trying to show that a compiler behaves according to its language specification[citation needed]. Techniques include developing the compiler using formal… …   Wikipedia

  • Compiler-compiler — A compiler compiler or compiler generator is a tool that creates a parser, interpreter, or compiler from some form of formal description of a language and machine. The earliest and still most common form of compiler compiler is a parser generator …   Wikipedia

  • source code — noun program instructions written as an ASCII text file; must be translated by a compiler or interpreter or assembler into the object code for a particular computer before execution • Hypernyms: ↑ASCII text file * * * noun : computer code in its… …   Useful english dictionary

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”