programming language translators

Description

A level Computing Flashcards on programming language translators, created by Thomas Barker on 22/09/2017.
Thomas Barker
Flashcards by Thomas Barker, updated more than 1 year ago
Thomas Barker
Created by Thomas Barker about 7 years ago
16
0

Resource summary

Question Answer
Translator the purpose of a translator is to translate high level code into machine code which the computer can understand
name the 3 types of translators Compiler Interpreters assemblers
source code programming code which has not been compiled into an executable file.The programmer writes this
object code compiled code that can be run as an executable on any computer
assembler an assembler creates object code by translating combinations of mnemonic and syntax for operations. assembly language to machine code
compiler -A compiler translates the whole program as one complete unit. -it creates an executable file -it reports the amount of errors. -it does not need to present to run the code
advantages of compiler -It does not need to be present in order to run the code -Object code is saved -Object code executes faster than interpreted code -More secure
disadvantages of compiler -Get all errors at once which can make debugging longer -Different computers types need different compilers
interpreter An interpreter will translate each line of source code into machine language and then execute that machine code directly. Looks at each line at a time Likely to be used during program development
advantages of interpreter Get errors line by line you don't need to compile whole program to run sections of code As code is translated each time it is executed program code can be run on processors with different instruction set.
disadvantages of interpreter Interpreter required to run program which means source code must be distributed Slow as code needs translating each time.
Bytecode Bytecode is computer object code that is processed by a program, usually referred to as a virtual machine, rather than by the "real" computer machine, the hardware processor.
Show full summary Hide full summary

Similar

A level Computing Quiz
Zacchaeus Snape
Types and Components of Computer Systems
Jess Peason
Input Devices
Jess Peason
Output Devices
Jess Peason
Computing
Kwame Oteng-Adusei
Pack of playing cards answer
Karl Taylor
Code Challenge Flow Chart
Charlotte Hilton
Computing Hardware - CPU and Memory
ollietablet123
Computer Systems
lisawinkler10
Computer science quiz
Ryan Barton
Input, output and storage devices
Mr A Esch