What is a Translator
Program that translates program source code into machine code so it can be directly executed by the processor. There are 3 Translators
Interpreter
Compiler
Assembler
What is a Compiler
Translates high level languages into machine code all in one go.
What is an Interpreter
Translates high-level language into machine code one line at a time.
Advantages of a Compiler
Speed of execution, Optimises the code, original source code will not be seen.
Disadvantages of a Compiler
Cen be memory intensive, Difficult to debug, changes mean it must be recompiled, It is designed solely for one specific processor.
Advantages of an Interpreter
Stops when it find a syntax error in the code, easier to debug, requires less RAM to process the code.
Disadvantages of an Interpreter
Slower execution, Every time the program is run it has to be translated, no optimization of code.
Processes of a Translator
Low-level languages such as assembly code are translated using an assembler. High-Level Languages are translated using a compiler or interpreter.
7 Features of an IDE
1 Code Editor
#2 Auto Correction
#3 Auto Completion
#4 Pretty print
#5 Translator
#6 Error Diagnostic
#7 Run-Time Environment
What is an Assemebler
Translates a program written in an assembly language into machine code
What is an IDE
Piece of software used to write and develop code has features like the 7. Translates code to low-level language/machine code.