Re: Compile speed: Pascal(Delphi) vs C++

Joachim Durchholz <joachim.durchholz@web.de>
8 Dec 2003 00:19:12 -0500

          From comp.compilers

Related articles
[5 earlier articles]
Re: Compile speed: Pascal(Delphi) vs C++ vbdis@aol.com (2003-11-21)
Re: Compile speed: Pascal(Delphi) vs C++ randyhyde@earthlink.net (Randall Hyde) (2003-11-21)
Re: Compile speed: Pascal(Delphi) vs C++ marcov@stack.nl (Marco van de Voort) (2003-12-03)
Re: Compile speed: Pascal(Delphi) vs C++ marcov@stack.nl (Marco van de Voort) (2003-12-03)
Re: Compile speed: Pascal(Delphi) vs C++ bobduff@shell01.TheWorld.com (Robert A Duff) (2003-12-03)
Re: Compile speed: Pascal(Delphi) vs C++ torbenm@diku.dk (2003-12-08)
Re: Compile speed: Pascal(Delphi) vs C++ joachim.durchholz@web.de (Joachim Durchholz) (2003-12-08)
Re: Compile speed: Pascal(Delphi) vs C++ rygNOSPAM@gmx.net (Fabian Giesen) (2003-12-08)
Re: Compile speed: Pascal(Delphi) vs C++ bobduff@shell01.TheWorld.com (Robert A Duff) (2003-12-13)
Re: Compile speed: Pascal(Delphi) vs C++ postmaster@paul.washington.dc.us (Paul Robinson) (2004-02-04)
| List of all articles for this month |

From: Joachim Durchholz <joachim.durchholz@web.de>
Newsgroups: comp.compilers
Date: 8 Dec 2003 00:19:12 -0500
Organization: Oberberg Online Infosysteme
References: 03-11-048 03-11-063 03-12-008
Keywords: C, Pascal
Posted-Date: 08 Dec 2003 00:19:11 EST

Marco van de Voort wrote:


>> In Pascal, when you import a unit's interface, it can be imported
>> just as a straight binary dump of the symbol table.
>
> Yes, but you have the burden of automake (automatically remake if
> files changed), so you have to check if all source files (.pas and
> .inc) and dependant units are in sync.


The difference is that, for a typical Windows program, you have to
recompile approximately five megabytes of header files
IIRC. (Stripping out comments and whitespace leaves you with a few
100K of relevant information, which still means a lot of symbol table
building.)


Having to remake a few files occasionally is still a clear win.


> The fact that typical (Borland) Pascal compilers compile a whole
> string of units in one go helps though. The dependant units are often
> already loaded into mem.


If that were the case, precompiled headers would close the gap from
standard C++ usage to Turbo Pascal. In practice, Turbo Pascal still
blows the socks off C++ (well, compiling several thousand lines of
code in fractions of a second on a '486 is really hard to beat).


Regards,
Jo


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.