Data structure or code used internally by a compiler or virtual machine to represent source code
"Intermediate form" redirects here. For the use of the term in biology, see Transitional fossil.
Program execution
General concepts
Code
Translation
Compiler
Compile time
Optimizing compiler
Intermediate representation (IR)
Execution
Runtime system
Runtime
Executable
Interpreter
Virtual machine
Types of code
Source code
Object code
Bytecode
Machine code
Microcode
Compilation strategies
Ahead-of-time (AOT)
Just-in-time (JIT)
Tracing just-in-time
Compile and go system
Precompilation
Transcompilation
Recompilation
Notable runtimes
Android Runtime (ART)
BEAM
Common Language Runtime (CLR) and Mono
CPython and PyPy
crt0
Java virtual machine (JVM)
LuaJIT
Objective-C and Swift's
V8 and Node.js
Zend Engine
Notable compilers & toolchains
GNU Compiler Collection (GCC)
LLVM and Clang
MSVC
v
t
e
An intermediate representation (IR) is the data structure or code used internally by a compiler or virtual machine to represent source code. An IR is designed to be conducive to further processing, such as optimization and translation.[1] A "good" IR must be accurate – capable of representing the source code without loss of information[2] – and independent of any particular source or target language.[1] An IR may take one of several forms: an in-memory data structure, or a special tuple- or stack-based code readable by the program.[3] In the latter case it is also called an intermediate language.
A canonical example is found in most modern compilers. For example, the CPython interpreter transforms the linear human-readable text representing a program into an intermediate graph structure that allows flow analysis and re-arrangement before execution. Use of an intermediate representation such as this allows compiler systems like the GNU Compiler Collection and LLVM to be used by many different source languages to generate code for many different target architectures.
An intermediaterepresentation (IR) is the data structure or code used internally by a compiler or virtual machine to represent source code. An IR is...
architecture. LLVM is designed around a language-independent intermediaterepresentation (IR) that serves as a portable, high-level assembly language...
Standard Portable IntermediateRepresentation (SPIR) is an intermediate language for parallel computing and graphics by Khronos Group. It is used in multiple...
The Parrot intermediaterepresentation (PIR), previously called Intermediate code (IMC), is one of the two assembly languages for the Parrot virtual machine...
generation. The AST is often used to generate an intermediaterepresentation (IR), sometimes called an intermediate language, for the code generation. AST differencing...
(syntax-directed translation), conversion of input programs to an intermediaterepresentation, code optimization and machine specific code generation. Compilers...
syntax tree representation derived from the source code. More recently, the authors of V8 and Dart have challenged the notion that intermediate bytecode...
Common Intermediate Language (CIL), formerly called Microsoft Intermediate Language (MSIL) or Intermediate Language (IL), is the intermediate language...
programming source code into an intermediaterepresentation, and the backend works with the intermediaterepresentation to produce code in a computer output...
GENERIC is more complex, based on the GCC 3.x Java front end's intermediaterepresentation. GIMPLE is a simplified GENERIC, in which various constructs...
which are meant to be compiled into some machine-independent intermediaterepresentation code (such as bytecode). This arrangement simplifies the task...
computer science, register transfer language (RTL) is a kind of intermediaterepresentation (IR) that is very close to assembly language, such as that which...
based on QuickBASIC. Code entered into the IDE is compiled to an intermediaterepresentation (IR), and this IR is immediately executed on demand within the...
arose originally as abstract platforms for an intermediate language used as the intermediaterepresentation of a program by a compiler; early examples date...
intermediaterepresentation, a data structure used by the compiler to represent the program. The optimizer improves the intermediaterepresentation to...
level pipeline of OpenVINO consists of two parts: generate IR (IntermediateRepresentation) files via Model Optimizer using your trained model or public...
Internal representation may refer to: Mental representation, in man Knowledge representation, in artificial intelligence Intermediaterepresentation, the...
have a lexer and parser that produce an intermediaterepresentation of the program. The intermediaterepresentation is a simple sequence of operations which...
possible to compile Parrot assembly language and Parrot intermediaterepresentation (PIR, an intermediate language) to Parrot bytecode and execute it. Parrot...