A compiler translates an entire program's source code ahead of time into machine code or a lower-level intermediate form. It differs from an interpreter, which reads and runs code line by line.
Compilers let programmers write in human-readable languages instead of machine code, and languages such as C and FORTRAN are typically run through a compiler.