Difference between one pass and multi pass compilers?

后端 未结 6 1074
逝去的感伤
逝去的感伤 2021-02-06 03:24

I have seen a lot of posts regarding one pass and multi pass compilers but i dont seem to get the point.

  • What are one

6条回答
  •  不思量自难忘°
    2021-02-06 03:48

    A single pass compiler is a compiler that scans the program only once and generates equivalent binary program.

    On the other hand a multi pass compiler processes the source code several times(multi pass) and each times the previous generated code works as the input.

    From the above definition, the difference between single pass and multi pass compiler is clear enough.Besides this multi pass makes your code more error free weather the chance of error detection is lower in single pass compiler.A multi pass compiler takes lots of time.That's why a single pass compiler is faster than multi pass compiler.

提交回复
热议问题