1.2.2.5 Translators Flashcards
- High-level languages
- Machine codes
- Assembly languages
- Binary codes
What is the correct arrangement of programming languages in the order of understandability by humans?
1, 3, 2, 4
Machine codes are written in what form?
Binary or hexadecimal
what is assembly language
A type of low-level programming language that uses instructions specific to hardware.
what does an assembler do
A computer program that translates a program written in an assembly language into machine code.
what does a compiler do
A computer program that translates a program written in high-level language into machine code all at once and then executes it.
what is a compiler mainly used for
putting a finished product onto systems
what is a translator
A utility program that translates the program written by programmers and codes in an assembly language into binary form.
What are the 3 types of translators
Assemblers
Compilers
Interpreters
advantages of compilers
Object code executes faster
Executable code can be saved and doesn’t need to be compiled.
disadvantages of compilers
Error doesn’t get flagged until the end of the process. If an error is discovered, the entire program may need to be recompiled.
Risk compiler might not generate all the required machine language, causing bugs.
Executable code produced is specific to the machine.
what does an interpreter do
A computer program that reads a statement from a program written in high-level language, performs the action specified by the statement and then proceeds to the next statement and so on.
(Runs the code line by line)
What is an interpreter used mainly for
error checking
What translator do we use to turn low-level code into executable machine code?
Assemblers
What translators can we use to turn high-level code into executable machine code?
Interpreters
Compilers