Hello...
More about compile time and build time..
Look here about Java it says:
"Java Build Time Benchmarks
I'm trying to get some benchmarks for builds and I'm coming up short via Google. Of course, build times will be super dependent on a million different things, but I'm having trouble finding anything comparable.
Right now: We've got ~2 million lines of code and it takes about 2 hours for this portion to build (this excludes unit tests).
What do your build times look like for similar sized projects and what did you do to make it that fast?"
Read here to notice it:
https://www.reddit.com/r/java/comments/4jxs17/java_build_time_benchmarks/
So 2 million lines of code of Java takes about 2 hours to build.
And what do you think that 2 millions lines of code takes
to Delphi ?
Answer: Just about 20 seconds.
Here is the proof from Embarcadero, read and look at the video to be convinced about Delphi:
https://community.idera.com/developer-tools/b/blog/posts/compiling-a-million-lines-of-code-with-delphi
C++ also takes "much" more time to compile than Delphi.
This is why i said previously the following:
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.