All Topics  
Source-to-source compiler

 

   Email Print
   Bookmark   Link

 

Source-to-source compiler


 
 

A "source-to-source compiler" is a type of compilerCompiler

A compiler is a computer program that translates text written in a computer language into another computer language ....
 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. OpenMPOpenMP

The OpenMP application programming interface supports multi-platform shared memory multiprocessing programming in C/C++ and ...
) or language constructs (e.g. FortranFortran

FORTRAN is a general-purpose, procedural, imperative programming language that is especially suited to numeric computation a...
'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 QtQt (toolkit)

In computer programming, Qt is a cross-platform application development framework, widely used...
's tool.

See also

  • Program transformationProgram transformation

    A program transformation is any operation that takes a program and generates another program....