Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

And what about the Advantages and disadvantages of single and multi pass compiler?

127 views
Skip to first unread message

amin...@gmail.com

unread,
Sep 28, 2019, 7:15:13 PM9/28/19
to
Hello..


I think Delphi is a single pass compiler, it is very fast at compile time, and i think C++ and Java and C# are multi pass compilers that are much slower than Delphi in compile time, but i think that the generated executable code of Delphi is still fast and is faster than C#.

And what about the Advantages and disadvantages of single and multi pass compiler?

And From Automata Theory we get that any Turing Machine that does 2 (or more ) pass over the tape, can be replaced with an equivalent one that makes only 1 pass, with a more complicated state machine. At the theoretical level, they the same. At a practical level, all modern compilers make only one pass over the source code. It typically translated into an internal representation that the different phases analyze and update. During flow analysis basic blocks are identified. Common sub expression are found and precomputed and results reused. During loop analysis, invariant code will be moved out the loop. During code emission registers are assigned and peephole analysis and code reduction is applied.



Thank you,
Amine Moulay Ramdane.

amin...@gmail.com

unread,
Sep 28, 2019, 7:15:40 PM9/28/19
to
0 new messages