The operation of compilers is more complex than
that of assembly languages; they provide the bridge
between machine code and higher level languages which
incorporate a more complex language structure than that
employed by assembly languages.
|Diagram showing how compilers create a program|
- The programmer will write a program.
- Once complete he will put his code into a software program called a compiler which will check his code and either:
a. show a list of all errors, or
b. create the finished program
There are three stages in the compilation process:
reading the code as a series of characters and
transforming the program into a series of symbols.
This checks the
syntax of the source program.
generating the equivalent machine code instruction
for every statement of the source program.