🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3383

Re: COMPILING SPEED

#3383
From: Paul Penrod
Date: Sat, 07 Nov 1992 08:52
57 lines
3236 bytes
In article <dmurdoch.253.721061938@mast.queensu.ca> dmurdoch@mast.queensu.ca (Duncan Murdoch) writes:
>In article <1992Nov6.102017.17897@sequent.com> furballs@sequent.com (Paul Penrod) writes:
>>>Q: Is compiling under C++ inherantly slower than C??
>>
>>Yes, always...
>>C++, because of its very nature, contains quite a bit of overhead,
>>since the compiler must resolve such cuties as polymorphism,
>>inheritance, and the like.
>
>But Turbo Pascal has all of those, and is much faster than any C or C++ 
>compiler I've ever seen.  
>

The original posting was between C and C++. Turbo Pascal does not
figure into this at all.

>>With your compile times under a minute, I dont think you can
>>optimize all that much, nor should you have much to complain about.
>>Now, on one of the project I am working on, it takes about 45
>>minutes to compile 7 megs or source, broken up into 15
>>subdirectories, and several hundred files. 
>
>I don't have any projects that big to compare, but the compile + link time 
>for a project with 350K of source (1/20th of yours) is 9 seconds
>under TP (1/300th of your time, assuming you were including 
>linking, i.e. 15 times as fast).  
>
>>The fastest optimization came when I switched away from a 386 and
>>went to a 486/33 from a 386/25. The compile times are now down to a
>>more reasonable 15 minutes.
>
>My timing was on a 486-25 system, without paying any special attention to 
>optimization. Still it was 5 times faster than your compiler.
>
>Why do people accept such slow compile times?  Turbo Pascal demonstrates 
>that fast compiler technology exists.  Is C++ five times harder to compile 
>than TP?
>

I could make the same case for TASM, since it compiles
significantly faster than anything else, but that does not mean I
want to use Intel assembly to solve my problem.

In terms of complexity in compilation, C and C++ is more difficult
to compile, because of the extreme flexability of expression that
is relatively curtailed in the Pascal Language, even with the more
C like extensions that Borland has graced it with. As to whether it
is 5 times harder to compile, that is an open question that one of
the engineers at Borland would be able to answer; but we, not
having access to the source code, could only speculate upon.


-- 
--------------------------------------------------------------------
            Bureaucracy: noun, plural - Bureaucracies.
         The process of turning energy into solid waste.
---------------------------------------------------------------------
Technical Details
Message-ID: <1992Nov7.085241.19340@sequent.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!uw-beaver!news.u.washington.edu!ogicse!sequent!muncher.sequent.com!furballs
References: <BwB79x.1sB@ecf.toronto.edu> <1992Nov6.102017.17897@sequent.com> <dmurdoch.253.721061938@mast.queensu.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!uw-beaver!news.u.washington.edu!ogicse!sequent!muncher.sequent.com!furballs
From: furballs@sequent.com (Paul Penrod)
Newsgroups: comp.os.msdos.programmer
Subject: Re: COMPILING SPEED
Message-ID: <1992Nov7.085241.19340@sequent.com>
Date: 7 Nov 92 08:52:41 GMT
Article-I.D.: sequent.1992Nov7.085241.19340
References: <BwB79x.1sB@ecf.toronto.edu> <1992Nov6.102017.17897@sequent.com> <dmurdoch.253.721061938@mast.queensu.ca>
Sender: usenet@sequent.com (usenet )
Distribution: na
Organization: Sequent Computer Systems Inc.
Lines: 57
Nntp-Posting-Host: crg8.sequent.com