Article View: de.comp.lang.c++
Article #114Re: Is the STL too authentic... ?
From: Edward C. Korsberg
Date: Tue, 10 Oct 1995 16:13
Date: Tue, 10 Oct 1995 16:13
56 lines
3263 bytes
3263 bytes
This is a multi-part message in MIME format. ---------------------------------150792264521191789861800073691 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii What commercial product are you referring to here? -- ---------------------------------------------------------- Ed Korsberg E-mail: Edward.Korsberg@cle.ab.com Allen Bradley Inc. phone: 216-646-4456, FAX 216-646-5116 1 Allen Bradley Drive Mayfield Heights, Ohio 44124-6118 ---------------------------------150792264521191789861800073691 Content-Transfer-Encoding: 7bit Content-Type: text/plain From: ark@research.att.com (Andrew Koenig) Newsgroups: de.comp.lang.c++,comp.lang.c++ Subject: Re: Is the STL too authentic... ? Date: Tue, 10 Oct 1995 12:22:45 GMT Organization: AT&T Bell Laboratories, Murray Hill NJ Message-ID: <DG8Fpy.8u6@research.att.com> References: <DFxJ75.3w0@research.att.com> <KANZE.95Oct9140029@slsvgqt.lts.sel.alcatel.de> <AC9FF58C96689D38@sleipner.nts.mh.se> In article <AC9FF58C96689D38@sleipner.nts.mh.se> lars.farm@nts.mh.se (Lars Farm) writes: > >I'd rather agree with Andy Koenig: "run-time checking is a good thing > >if you can afford it." This would suggest that the only time you turn > >checking off is when profiling shows that you have a performance > >problem due to run-time checking." > Interesting. I got the impression he felt they were a good thing, but would > impair performance too much to be required in the general case and I > responded accordingly. Full run-time checking is exceedingly expensive in C and C++, mostly because of C's unconstrained pointers. > I consider the current status of every c++ compiler I have access to - no > range check at all - a premature, bad and unwanted optimization. I have > never seen a C++ compiler that does runtime checking. I'd love to use one, > even if the checking is only partial. They do exist. For example, one commercial product is acompiler/interpreter that pretty much does full run-time checking that can be turned on and off on a translation unit basis. Another one is an after-compilation range checker that rewrites the machine instructions in your executable file to include run-time checking of many (though not all) bounds errors. That product has the advantage of working with both C and C++; moreover you don't even need the source code in order to use it. -- --Andrew Koenig ark@research.att.com ---------------------------------150792264521191789861800073691--
Technical Details
Message-ID:
<45e62c$j1d@news1.cle.ab.com>Path:
arc1-ca.pugleaf.net!news1.cle.ab.com!usenetReferences:
<DFxJ75.3w0@research.att.com> <KANZE.95Oct9140029@slsvgqt.lts.sel.alcatel.de> <AC9FF58C96689D38@sleipner.nts.mh.se> <DG8Fpy.8u6@research.att.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news1.cle.ab.com!usenet From: "Edward C. Korsberg" <korsberg@cle.ab.com> Newsgroups: de.comp.lang.c++,comp.lang.c++ Subject: Re: Is the STL too authentic... ? Date: 10 Oct 1995 16:13:00 GMT Organization: Allen Bradley Distribution: inet Message-ID: <45e62c$j1d@news1.cle.ab.com> References: <DFxJ75.3w0@research.att.com> <KANZE.95Oct9140029@slsvgqt.lts.sel.alcatel.de> <AC9FF58C96689D38@sleipner.nts.mh.se> <DG8Fpy.8u6@research.att.com> NNTP-Posting-Host: pipit.cle.ab.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="-------------------------------150792264521191789861800073691" X-Mailer: Mozilla 1.1 (X11; U; SunOS 4.1.3 sun4m) X-URL: news:DG8Fpy.8u6@research.att.com