Types Of Program Translator Flashcards
Explain why a compiler is used to produce the final version of a computer program?
So that the source code cannot be accessed by the users. And the users don’t need a programming environment.
Explain why programs written in a scripting language for this purpose and are interpreted rather than compiled?
Complied program only executes on a processor specific type, program run by interpreter executes on a computer with any type of processor.
Advantages of using a compiler rather an interpreter to prepare runnable program
Compiler optimises code.
Produces object code .
Explain the differences between a compiler and interpreter.
Compiler is the whole program is translated
Interpreter is line by line
Compilers produce object code and interpreters do not
Explain what intermediate code is and some compilers will produce intermediate code as the final output.
Intermediate code is not directly executable and this means it will be interpreted by a virtual machine
Explain why the final version of a computer program is usually translated using a compiler?
So that source code cannot be accessed by users and the program will execute more quickly.
Explain why programs written in the JavaScript language to be executed in a web browser are interpreted rather than compiled?
Program will only execute on a processor of a specific type can’t know what type of processor will be used in users computer