Software Development

What is a compiler and interpreter?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

bzfar.org

Compiler:

"A compiler is a translator used to convert high-level programming language to low-level programming language. It converts the whole program in one session and reports errors detected after the conversion. Compiler takes time to do its work as it translates high-level code to lower-level code all at once and then saves it to memory."

Interpreter:

"Just like a compiler, is a translator used to convert high-level programming language to low-level programming language. It converts the program line by line and reports errors detected at once, while doing the conversion. With this, it is easier to detect errors than in a compiler."