home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!borland.com!news!cfortier
- From: cfortier@genghis.news (Chris Fortier)
- Subject: COMPILATION SPEED
- Message-ID: <CFORTIER.92Nov10130727@genghis.news>
- Sender: news@borland.com (News Admin)
- Organization: Borland International, Inc.
- Date: Tue, 10 Nov 1992 21:07:27 GMT
- Lines: 26
-
-
- THE difference between Borland Pascal and Borland C++ compilation speed
- is attributable to header files. Period.
-
- A Borland Pascal program simply inserts the statement "uses xx.tpu", whereby
- the compiler simply loads the binary image into memory.
-
- Borland C++ programs use "#include xx.h", whereby the compiler must PARSE the
- source text. If there are many header files, the loss of speed can be
- dramatic.
-
- There is a way in C++ to get much better compilation speeds, precompiled
- headers. These function in the same way as a Borland Pascal uses statement,
- allowing compilation times to be much faster, albeit, probably still a little
- slower than Borland Pascal.
-
- Another thing to remember with Borland Pascal, there is no separate link step.
- The compiler does everything in one executable. The link step in Borland C++
- is separate, thus there is time spent in unloading the compiler and loading
- the linker in memory. Both ways have their advantages and disadvantages.
-
- Chris Fortier
- Borland C++ Run Time Library QA
-
- cfortier@borland.com
-
-