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

  1. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!pitt.edu!stern
  2. From: stern+@pitt.edu (Eric G Stern)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Version Strings...
  5. Message-ID: <1571@blue.cis.pitt.edu>
  6. Date: 8 Jan 93 18:23:20 GMT
  7. References: <1993Jan8.111612.25180@sunbim.be> <1993Jan8.145323.29380@samba.oit.unc.edu>
  8. Sender: news+@pitt.edu
  9. Organization: University of Pittsburgh
  10. Lines: 14
  11.  
  12. In article <1993Jan8.111612.25180@sunbim.be> accs1@bagheera.mumath writes:
  13. >
  14. >UBYTE Version[] = "\0$VER: ProgName 1.0 (7.1.92)";
  15. >
  16. >I wonder why that stays in the executable. I would expect a good compiler  
  17. >would through that line away unless it is really referenced.
  18.  
  19.  
  20. If the variable is defined outside a function so that it
  21. is global, then the compiler can't know that it is not referenced
  22. in some other possibly separately compiled module and so it
  23. has to leave it in.
  24.  
  25.                 Eric Stern
  26.