Why translate?

The CPU only understands machine code, so source code must be translated.

CompilerInterpreter
Howtranslates the whole program oncetranslates and runs one line at a time
Errorsreports them all at the endstops at the first error
Outputan executable fileno file: it runs the source directly
Runningfast; no translator neededslower; the interpreter is needed every time
Source codestays privatemust be shared
Good forfinished softwarewriting, testing and learning

An assembler translates assembly language into machine code, one instruction for one instruction.

Which translator?

Think about who runs the program and what they need.