home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7783 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  2.4 KB

  1. Path: sparky!uunet!gatech!asuvax!ennews!telesys!wierius!witsend!dcs
  2. Message-ID: <765343d4881882t223@witsend.uucp>
  3. Date: Thursday, 31 December 1992 13:29:56 MST
  4. X-Mailer: TMail version 1.15R
  5. From: "D. C. Sessions" <dcs@witsend.tnet.com>
  6. Organization: Nobody but me -- really
  7. References: <1992Dec27.022633.14853@beaver.cs.washington.edu>     <765338d8368876t211@witsend.uucp> <dmurdoch.254.725594757@mast.queensu.ca> <1992Dec29.163745.19275@nmsu.edu> <1992Dec31.121645.6747@qiclab.scn.rain.com>
  8. Subject: Re: Distributing TPUs
  9. Newsgroups: comp.lang.pascal
  10. Distribution: world
  11. Lines: 34
  12.  
  13. In <1992Dec31.121645.6747@qiclab.scn.rain.com>, leonard@qiclab.scn.rain.com (Leonard Erickson)  wrote:
  14. # trodgers@nmsu.edu (Thomas Rodgers) writes:
  15. # >dmurdoch@mast.queensu.ca writes :
  16. # >> It's a trade-off.  .TPU files contain some optimizations that make
  17. # >> compiling and linking go much faster than ic could with .OBJ files; 
  18. # >> these mean upward compatibility is essentially impossible.
  19. # >Hmmm...Having used Borland's C++ product as well as their pascal
  20. # >product, I think I would rather put up with slightly slower compile times
  21. # >to get the ability to use .OBJ files, for several reasons.  Borland's
  22. # >C++ product is not that slow of a compiler, the biggest slowdown comes
  23. # >from compiling all of those <.h> files, but you can pre-compile the
  24. # >headers (not the greatest solution, but it works).  Borland could go a
  25. # >similar route with the Pascal units.
  26. # Well, TPU files have a *big* advantage over OBJ and LIB files in one
  27. # area. If I only use *one* function or procedure from a TPU, only the
  28. # code required for *that* is incorporated in the final EXE. Ditto for
  29. # constants defined in the TPU. Only the ones that get *used* are incorporated.
  30.  
  31.   Yes, but smart linkers do this with .OBJ files as well.  'Way back
  32.   in '88 (do I sound like a fogey yet?) Logitech's Modula-2
  33.   compiler and smart linker were doing this trick.  The compiler
  34.   had to put some extra symbols in the image, but that was necessary
  35.   for .DEF timestamping anyway.  So, since Borland didn't add the
  36.   feature until AFTER it was available elsewhere for .OBJ files, they
  37.   still have a lot of NIH to explain away.
  38.  
  39. --- D. C. Sessions                            Speaking for myself ---
  40. --- Note new network address:                dcs@witsend.tnet.com ---
  41. --- Author (and everything else!) of TMail  (DOS mail/news shell) ---
  42.