home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!nigel.msen.com!ilium!sycom!ro-chp!chopps
- From: chopps@ro-chp.UUCP (Chris Hopps)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Version Strings...
- Message-ID: <81pgs*M00@ro-chp.UUCP>
- Date: Fri, 08 Jan 1993 14:00:24 GMT
- References: <1993Jan8.111612.25180@sunbim.be> <Per_Salmi.0lxs@augs.se>
- Keywords: optimization
- Summary: nope.
- Organization: Not an Organization
- X-Newsreader: Arn V1.00 beta rel2
- Lines: 21
-
- In article <Per_Salmi.0lxs@augs.se>, Per Salmi writes:
-
- > accs1@bagheera.mumath wrote:
-
- > : >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.
-
- > You really got a point there! Why does it?
-
- The compiler has no idea its not referenced, becuase it can be referenced across
- compilation units.
-
- You then might think that a good linker could optimize it out, but the logic behind
- this would 1) probably never work right and 2) someone would find a reason the linker
- should not be deleting non referenced data objects. Plus how would we imbed strings
- then? :^)
- ------------------------
- The Royal Oak Chophouse >> Chris Hopps
- Royal Oak, Michigan >> sycom.mi.org!ro-chp!chopps
-