home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18400 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.9 KB  |  50 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: <C0KBM1.Kun@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> <Per_Salmi.0lxs@augs.se> <24661@hacgate.SCG.HAC.COM>
  11. Date: Sat, 9 Jan 1993 01:18:01 GMT
  12. Lines: 36
  13.  
  14. In article <24661@hacgate.SCG.HAC.COM> johnl@SDFSERV.hac.com (John Lee) writes:
  15. >In article <Per_Salmi.0lxs@augs.se> Per_Salmi@augs.se (Per Salmi) writes:
  16. >>accs1@bagheera.mumath wrote:
  17. >>: In article 93Jan7184001@lk-hp-16.hut.fi, s37732v@snakemail.hut.fi (Markus Juhani Aalto) writes:
  18. >>: >In article <Leon.0byx@abcd.Houghton.MI.US> Leon@abcd.Houghton.MI.US (Leon) writes:
  19. >>: >UBYTE Version[] = "\0$VER: ProgName 1.0 (7.1.92)";
  20. >>:
  21. >>: I wonder why that stays in the executable. I would expect a good compiler
  22. >>: would 
  23. >>: through that line away unless it is really referenced.
  24. >>
  25. >>You really got a point there! Why does it? 
  26. >
  27. >....  By then, it's too late since the
  28. >linker can't throw out things in a module.
  29.  
  30. What can't it throw it away?  (I obviously feel it can).
  31.  
  32. >Now, if it had been declared:
  33. >
  34. >    static UBYTE Version[] = "\0$VER: ProgName 1.0 (7.1.92)";
  35. >
  36. >then the compiler might have noticed the lack of references and
  37. >optimized it away.
  38.  
  39. Which leads to the earlier question of: but should it.
  40. I certainly don't want nonsense cluttering up my executables,
  41. OTOH, there are things like Version (I've seen similar on other systems
  42. and have even written said type of situations myself), and other things.
  43.  
  44. - Greg
  45. -- 
  46.          Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418
  47.                    Producers of Comeau C++ 3.0 With Templates
  48.           Here:attmail.com!csanta!comeau / BIX:comeau / CIS:72331,3421
  49.         Voice:718-945-0009 / Fax:718-441-2310 / Prodigy: tshp50a
  50.