home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18399 < prev    next >
Encoding:
Text File  |  1993-01-08  |  2.0 KB  |  46 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!well!comeau
  3. From: comeau@csanta.attmail.com (Greg Comeau)
  4. Subject: Re: Version Strings...
  5. Message-ID: <C0KB7x.KnE@well.sf.ca.us>
  6. Originator: comeau@well.sf.ca.us
  7. Sender: news@well.sf.ca.us
  8. Reply-To: comeau@csanta.attmail.com (Greg Comeau)
  9. Organization: Comeau Computing
  10. References: <1993Jan8.111612.25180@sunbim.be> <1993Jan8.145323.29380@samba.oit.unc.edu> <1571@blue.cis.pitt.edu>
  11. Date: Sat, 9 Jan 1993 01:09:33 GMT
  12. Lines: 32
  13.  
  14. In article <1571@blue.cis.pitt.edu> stern+@pitt.edu (Eric G Stern) writes:
  15. >In article <1993Jan8.111612.25180@sunbim.be> accs1@bagheera.mumath writes:
  16. >>
  17. >>UBYTE Version[] = "\0$VER: ProgName 1.0 (7.1.92)";
  18. >>
  19. >>I wonder why that stays in the executable. I would expect a good compiler  
  20. >>would through that line away unless it is really referenced.
  21. >
  22. >
  23. >If the variable is defined outside a function so that it
  24. >is global, then the compiler can't know that it is not referenced
  25. >in some other possibly separately compiled module and so it
  26. >has to leave it in.
  27.  
  28. That suffers from that it views a compiler from what I guess is best termed
  29. as a traditional approach wheeas their are explicit things like source
  30. files as well as explicit things like command line compilers (or even
  31. IDE ones) that get provoked by the user for some response.  Even at that
  32. though it suffers from the view of traditional implementations and thier
  33. lack of willingness to socialize with themselves (there can be some level
  34. of smarts in which the compiler can conspire with itself to arrange some
  35. of these).  Additional suffering come in that it doesn't view that the
  36. the compiler can leave the situation in the hands of a so-called
  37. traditional linker, or that a "compiler system" should be able to make
  38. some arrangement for this.
  39.  
  40. - Greg
  41. -- 
  42.          Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418
  43.                    Producers of Comeau C++ 3.0 With Templates
  44.           Here:attmail.com!csanta!comeau / BIX:comeau / CIS:72331,3421
  45.         Voice:718-945-0009 / Fax:718-441-2310 / Prodigy: tshp50a
  46.