home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!well!comeau
- From: comeau@csanta.attmail.com (Greg Comeau)
- Subject: Re: Version Strings...
- Message-ID: <C0KBM1.Kun@well.sf.ca.us>
- Originator: comeau@well.sf.ca.us
- Sender: news@well.sf.ca.us
- Reply-To: comeau@csanta.attmail.com (Greg Comeau)
- Organization: Comeau Computing
- References: <1993Jan8.111612.25180@sunbim.be> <Per_Salmi.0lxs@augs.se> <24661@hacgate.SCG.HAC.COM>
- Date: Sat, 9 Jan 1993 01:18:01 GMT
- Lines: 36
-
- In article <24661@hacgate.SCG.HAC.COM> johnl@SDFSERV.hac.com (John Lee) writes:
- >In article <Per_Salmi.0lxs@augs.se> Per_Salmi@augs.se (Per Salmi) writes:
- >>accs1@bagheera.mumath wrote:
- >>: In article 93Jan7184001@lk-hp-16.hut.fi, s37732v@snakemail.hut.fi (Markus Juhani Aalto) writes:
- >>: >In article <Leon.0byx@abcd.Houghton.MI.US> Leon@abcd.Houghton.MI.US (Leon) 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.
- >>
- >>You really got a point there! Why does it?
- >
- >.... By then, it's too late since the
- >linker can't throw out things in a module.
-
- What can't it throw it away? (I obviously feel it can).
-
- >Now, if it had been declared:
- >
- > static UBYTE Version[] = "\0$VER: ProgName 1.0 (7.1.92)";
- >
- >then the compiler might have noticed the lack of references and
- >optimized it away.
-
- Which leads to the earlier question of: but should it.
- I certainly don't want nonsense cluttering up my executables,
- OTOH, there are things like Version (I've seen similar on other systems
- and have even written said type of situations myself), and other things.
-
- - Greg
- --
- Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418
- Producers of Comeau C++ 3.0 With Templates
- Here:attmail.com!csanta!comeau / BIX:comeau / CIS:72331,3421
- Voice:718-945-0009 / Fax:718-441-2310 / Prodigy: tshp50a
-