A compiler is a program that translates source code into machine code or an intermediate form before execution, producing a standalone executable. Because translation occurs before runtime, compiled programs generally run faster than interpreted programs. For example, C programs are compiled into executables using the GCC compiler.