A compiler is a special program that translates a programming language's source code into machine code, bytecode or another programming language. The source code is typically written in a high-level, human-readable language such as Java or C++.
An assembler is a program that compiles human readable assembly language to machine code, the actual instructions executed by hardware. The inverse program that translates machine code to assembly language is called a disassembler.
The compiler takes the optimised intermediate code and translates it into machine code. This machine code is then executed by the computer's processor. The entire process, from high-level code to machine code, is done in one go, which is why it's called 'compiling'.
Compilers translate the instructions written by the programmer into _____ code. object. The best way to study. Sign up for free. By signing up, you accept
Some compilers can translate source code into another high-level programming language, rather than machine code or bytecode. This type of compiler might be referred to as a transpiler, transcompiler, source-to-source translator or it might go by another name.
The name "compiler" is primarily used for programs that translate source code from a high-level programming language to a low-level programming language (e.g. assembly language, object code, or machine code) to create an executable program.