Computer Languages
Compilers (2 of 2)


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

  1. The programmer will write a program.
  2. 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:

  • Lexical Analysis

    This involves reading the code as a series of characters and transforming the program into a series of symbols.

  • Syntax Analysis

    This checks the syntax of the source program.

  • Code Generation

    This involves generating the equivalent machine code instruction for every statement of the source program.