home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
- From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
- Subject: Re: Why is Turbo C slower then Turbo Pascal?
- Message-ID: <9220323.29951@mulga.cs.mu.OZ.AU>
- Keywords: Why C slower then Pascal?
- Sender: news@cs.mu.OZ.AU
- Organization: Computer Science, University of Melbourne, Australia
- References: <silver.711576798@sfu.ca>
- Distribution: na
- Date: Tue, 21 Jul 1992 13:47:10 GMT
- Lines: 23
-
- silver@fraser.sfu.ca (Craig Silver) writes:
-
- > I've got Turbo C++ 1.01 and Turbo Pascal 5. I thought Turbo
- >C++ was supposed to be a comparatively fast compiler. But compared
- >with TP, it's got to be *atleast three times slower*!!
- >
- > Why is this and is there anything I can do to speed up my
- >TCPP? Thanks for your response.
-
- Get a later version of Turbo C++.
- Later versions have a faster compiler front-end (the front end is supposed to
- be nearly twice as fast; I don't know about the overall effect on compilation
- speed).
- Later versions also have pre-compiled headers. Turbo Pascal uses units instead
- of .h & .c files, and it automatically pre-compiles unit interfaces. This is
- probably the reason for the factor of 3 performance difference that you are
- observing.
-
- --
- Fergus Henderson fjh@munta.cs.mu.OZ.AU
- This .signature VIRUS is a self-referential statement that is true - but
- you will only be able to consistently believe it if you copy it to your own
- .signature file!
-