1.2.2 Translators Flashcards
1
Q
What is source code?
A
refers to the original code written by a programmer in a high-level programming language
2
Q
what is a machine code?
A
code that can be understood by computer, in binary form.
3
Q
Assembler?
A
translate low level assembly code into machine code, by translating mnemonics in 1-1 relationship.
4
Q
interpreter?
A
translate source code into machine code, code is translated line by line.
5
Q
compiler?
A
takes the whole code and translate it into machine code if successful.
the code after it goes through compiler:
- the code become machine code directly.
- the code become intermediate code(between source and machine code), then goes through interpreter and become machine code.