A translator is a computer program that performs the translation of a program written in a given programming language into a functionally equivalent program in a different ways computer language, without losing the functional or logical structure of the original code (the "essence" of each program). These include translations between high-level and human-readable computer languages such as C++, Java and COBOL, intermediate-level languages such as Java bytecode, low-level languages such as the assembly language and machine code, and between similar levels of language on different computing platforms, as well as from any of these to any other of these. Arguably they also include translators between software implementations and hardware/ASIC microchip implementations of the same program, and from software descriptions of a microchip to the logic gates needed to build it.
Types of translators
If the translator translates a high-level language into an intermediate code which will be immediately executed, it is called an interpreter. Oi gata
Source to source
If the translator translates a high-level language into another high-level language, it's called a translator or source-to-source compiler. Examples include Haxe, FORTRAN-to-Ada translators, CHILL-to-C++ translators, PASCAL-to-C translators, COBOL(DialectA)-to-COBOL(DialectB) or Python translators.
If the translator translates a high-level language into a lower-level language, it is called a compiler. Notice that every language can be either translated into a (Turing-complete) high-level or assembly language.
Hardware description language
Translators that translate from a human-readable design specified in terms of rules and high-level functions into the equivalent logic gates and chip layout needed to achieve its manufacture belong to electronic design automation and hardware description language categories.
- "COMS W4115: Programming Languages and Translators". cs.columbia.edu. December 24, 2013. Retrieved January 7, 2015.
- "Introduction to Programming using Python, Chapter 5. Program execution, Section 5.2. Interpreter and Compiler". pasteur.fr. February 4, 2008. Retrieved January 7, 2015.
|This article related to a type of software is a stub. You can help Wikipedia by expanding it.|