home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18415 < prev    next >
Encoding:
Internet Message Format  |  1993-01-09  |  1.2 KB

  1. Path: sparky!uunet!spool.mu.edu!nigel.msen.com!ilium!sycom!ro-chp!chopps
  2. From: chopps@ro-chp.UUCP (Chris Hopps)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Version Strings...
  5. Message-ID: <81pgs*M00@ro-chp.UUCP>
  6. Date: Fri, 08 Jan 1993 14:00:24 GMT
  7. References: <1993Jan8.111612.25180@sunbim.be> <Per_Salmi.0lxs@augs.se>
  8. Keywords: optimization
  9. Summary: nope.
  10. Organization: Not an Organization
  11. X-Newsreader: Arn V1.00 beta rel2
  12. Lines: 21
  13.  
  14. In article <Per_Salmi.0lxs@augs.se>, Per Salmi writes:
  15.  
  16. > accs1@bagheera.mumath wrote:
  17.  
  18. > : >UBYTE Version[] = "\0$VER: ProgName 1.0 (7.1.92)";
  19.  
  20. > : I wonder why that stays in the executable. I would expect a good compiler would
  21. > : through that line away unless it is really referenced.
  22.  
  23. > You really got a point there! Why does it?
  24.  
  25. The compiler has no idea its not referenced, becuase it can be referenced across
  26. compilation units.
  27.  
  28. You then might think that a good linker could optimize it out, but the logic behind
  29. this would 1) probably never work right and 2) someone would find a reason the linker
  30. should not be deleting non referenced data objects.  Plus how would we imbed strings
  31. then? :^)
  32. ------------------------
  33. The Royal Oak Chophouse >> Chris Hopps
  34. Royal Oak, Michigan     >> sycom.mi.org!ro-chp!chopps
  35.