120 likes | 803 Views
Interpreters and Compilers. By Louis Patience. Interpreter. An interpreter takes each line of high level language and translates it into machine code so the processor can understand it and carry out that instruction. It then works its way through the program one line at a time in this way
E N D
Interpreters and Compilers By Louis Patience
Interpreter • An interpreter takes each line of high level language and translates it into machine code so the processor can understand it and carry out that instruction. • It then works its way through the program one line at a time in this way • An interpreter is basically a translator, it translates high level languages to machine code and it does so at a few sentences at a time.
Compiler • A compiler takes your high level language and translates the whole program into machine code once. • The machine code can then be saved and kept and does not need to be translated before it is run. • This is an example of .exe file. • Software that you buy, such as a game or an application, will have to be compiled into machine code before being distributed and sold.