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

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!mcsun!ub4b!sunbim!usenet
  3. From: accs1@bagheera.mumath
  4. Subject: Re: Version Strings...
  5. Message-ID: <1993Jan11.084248.4835@sunbim.be>
  6. Sender: usenet@sunbim.be (user news)
  7. Reply-To: accs1@bagheera.mumath
  8. Organization: Sun Microsystems
  9. References: <1993Jan8.145323.29380@samba.oit.unc.edu>
  10. Date: Mon, 11 Jan 93 08:42:48 GMT
  11. Lines: 29
  12.  
  13. In article 29380@samba.oit.unc.edu, Todd_Lewis@unc.edu (Todd M. Lewis) writes:
  14. >In article <1993Jan8.111612.25180@sunbim.be> accs1@bagheera.mumath writes:
  15. >>
  16. >>>UBYTE Version[] = "\0$VER: ProgName 1.0 (7.1.92)";
  17. >>
  18. >>I wonder why that stays in the executable. I would expect a good compiler  
  19. >>would through that line away unless it is really referenced.
  20. >
  21. >It _IS_ really referenced--by the Version program.  I'm not sure I would
  22. >call a compiler "good" if it started getting in the way building programs.
  23. >Perhaps a "really good" compiler would have an option to turn off some
  24. >optimizations in selected places.
  25. >--
  26. > _/_/_/  _/     Todd_Lewis@unc.edu          You can lead a horse to 
  27. >  _/    _/     utoddl@guitar.oit.unc.edu   Mohammad, but you can't make
  28. > _/    _/_/_/                             a mountain drink a mole hill.
  29.  
  30.  
  31. I meant referenced by the program it is contained in. I agree, an option would
  32. be nice and the default should be 'get unreferenced variable space' out of
  33. the executable.
  34.  
  35. Besides, I think a much better declaration of the above would be
  36.  
  37.   const UBYTE Version[] = "\0$VER: ProgName 1.0 (7.1.92)";
  38.  
  39. as I don't think the program it is contained in should change the version string.
  40.  
  41. Frank
  42.