Program Translators (AQA GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
Program translator
Program translator
Software that converts high-level code to machine code
Three types of program translators
Three types of program translators
Compilers, interpreters, and assemblers
Compiler function
Compiler function
Translates entire program at once into executable file
What a compiler creates
What a compiler creates
Executable file
Interpreter function
Interpreter function
Translates and executes code line by line as program runs
Example of interpreted language
Example of interpreted language
Python
Assembler function
Assembler function
Converts assembly language into machine code
Assembly language to machine code ratio
Assembly language to machine code ratio
1:1 correspondence (each instruction = one machine code)
Speed: compiled vs interpreted programs
Speed: compiled vs interpreted programs
Compiled programs run much faster than interpreted ones
Hardware dependency of translators
Hardware dependency of translators
All three types are hardware-dependent
Interpreter advantage for debugging
Interpreter advantage for debugging
Stops immediately at errors, shows exact line with problem
Compiled program distribution benefit
Compiled program distribution benefit
Can distribute as executable without sharing source code
