Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

A compiler is used in order to convert the source code of a compiled language into machine code or bytecode.

A compiler generally converts the source code into intermediate representation, and (possibly) finally into machine code.

Compiled languages

edit edit source

A compiled language is a type of programming language where, instead of stepping through each instruction of a program (like an interpreted language) the source code is converted into machine code by a compiler.

Advantages of compiled languages

edit edit source

Disadvantages of compiled languages

edit edit source

For some programming languages, instead of directly compiling to machine code, the source code is instead converted to a format known as bytecode.

This bytecode can't be directly executed by the CPU, but can be interpreted using an interpreter, often known as a process virtual machine.