Explain types of compiler

No. Single pass compiler Multi pass compiler
1 A one-pass compiler is a compiler that passes through the source code of each compilation unit only once. A multi-pass compiler is a type of compiler that processes the source code or abstract syntax tree of a program several times.
2 A one-pass compiler is faster than multi-pass compiler. A multi-pass compiler is slower than single- pass compiler.
3 One-pass compiler are sometimes called narrow compiler. Multi-pass compilers are sometimes called wide compiler.
4 Language like Pascal can be implemented with a single pass compiler. Languages like Java require a multi-pass compiler.

Leave a Reply