Preview lessons, content and tests

Computer Science & Programming solved. All in one platform.

1. To trial the platform and take tests, please take a few seconds to SIGN UP and SET UP FREE.
2. Searching for something specific? See our text overview of all tests. Includes 'real teacher' use videos.

Stages of Compilation

There are different stages in the compilation process. Tools exist to help programmers develop error-free code.

Suggested Video

(1) Lexical Analysis

-All comments and white space is removed.

-Code is turned into tokens.

-Symbol table created.

(2) Syntactic Analysis

-Checks syntax.

-Syntax tree is created using the symbol tree.

(3) Code Generation

-Syntax tree is converted into object code.

(4) Code Optimisation

-Removes unneeded code to make sure it runs as fast as possible, such as unused functions or variables.

www.teachyourselfpython.com