Operating Systems Concepts - Engineering

Q1:

Which of the following is a phase of a compilation process

A Lexical analysis

B Code generation

C Both of the above

D Static analysis

E None of the above

ANS:C - Both of the above

There are 6 phases of compilation process:

1- Lexical analysis.

2- Syntactic analysis.

3- Semantic analysis.

4- Machine independent optimization.

5- Code generation.

6- Machine dependent optimization.