Please enable JavaScript.
Coggle requires JavaScript to display documents.
Program Construction - Coggle Diagram
Program Construction
Translators
-
A program written in another language has to be converted into machine code before the program can be run.
the term translators is to cover all the types of software that are converted into code from one form to another
Compilers, interpreters and assemblers are all types of translators.
Assemblers
An opcode is short term for Operation Code and it is a single instruction that can be executed by the CPU
-
In the machine language, it is a binary or hexadecimal value such as b6 loaded into the instruction register.
a assembler is a program that converts a assembly language program into executable code that the processor can execute
Compilers
-
Syntax analysis
If syntax errors are found, error messages are produced
tokens are to checked to see if they match the spelling and grammar using standard language definitions
-
Code generation
Machine code is generated and uses
Code optimization that be employed to make it more efficient/faster/less resource intense
Interpreters
A interpreter analyses that source code statement by statement as execution proceeds interpreting the meaning of each statements and calling routines to carry out each instructiion
However the interpreter only checks code that is being used portions may go untested and still have errors