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