- Two-pass compilers:
- The compiler
reads the
source code
once
to compile (= translate)
the program
- In the 1st pass, the
compiler will:
- Gather the
definition of
all
variables and
functions
|
- In the 2nd pass, the
compiler will:
|
- One-pass compilers:
- The compiler
reads the
source code
once
to compile (= translate)
the program
- In an one-pass compiler,
the compiler will:
- Gather the
definition of
all
variables and
functions
while it is
translation the
program !!!
|
|
|