Article View: comp.std.c
Article #1351Re: for(;;) vs. while(1) is a draw
From: Blair P. Houghton
Date: Thu, 31 May 1990 15:50
Date: Thu, 31 May 1990 15:50
47 lines
2642 bytes
2642 bytes
In article <:0T3AHF@xds13.ferranti.com> peter@ficc.ferranti.com (Peter da Silva) writes: >In article <5916@buengc.BU.EDU> bph@buengc.bu.edu (Blair P. Houghton) writes: >> In article <0:P3-A6@ggpc2.ferranti.com> peter@ficc.ferranti.com (Peter da Silva) writes: >> >you said the standard requires the compiler generate identical code >> >for !while(1)! and !for(;;)!. > >> I said that a compiler that >> the implementor claimed to be matching the standard's model >> of a hypothetical machine would, in fact, generate >> identical code for !while(1)! and !for(;;)!. > >I'm sorry, but I can't see any significant difference between these two >statements. Oh, good. A paying customer. This is exactly the sort of non-comprehension that makes lawyers blithely rich while being their usual, stupid selves. Okay; comprehension by parts: The first statement, "the standard requires the compiler," would mean that the compiler would have no choice. This is patently false, but can be true for much of the standard when you assume the existence of an implied condition that can be stated "if the compiler claims X3.159 conformance"; even so, it does not apply to the portion of the standard under contention. The second statement, "a compiler that the implementor claimed," involves claims by one side in an implied contract. These claims then must be supported by the performance of the product; otherwise, a litigable and/or criminal situation will ensue. The difference is that the first statement is false, and the second statement indicates that the implementor has constrained his own product, and thus can not be false unless elsewhere contravened by the implementor's own claims (i.e., don't forget to read the fine print on the fine print). >Perhaps you should try turning on your English language optimiser? What, and deprive you of a heapin' helpin' of my wonderful legalese? --Blair "Will that be cash, certified check, or do you just want to run up a tab?"
Technical Details
Message-ID:
<5931@buengc.BU.EDU>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!brutus.cs.uiuc.edu!apple!snorkelwacker!bu.edu!buengc!bphReferences:
<5876@buengc.BU.EDU> <12955@smoke.BRL.MIL> <5879@buengc.BU.EDU> <Z4O3P:2@xds13.ferranti.com> <5904@buengc.BU.EDU> <0:P3-A6@ggpc2.ferranti.com> <5916@buengc.BU.EDU> <:0T3AHF@xds13.ferranti.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!brutus.cs.uiuc.edu!apple!snorkelwacker!bu.edu!buengc!bph From: bph@buengc.BU.EDU (Blair P. Houghton) Newsgroups: comp.std.c Subject: Re: for(;;) vs. while(1) is a draw Message-ID: <5931@buengc.BU.EDU> Date: 31 May 90 15:50:37 GMT References: <5876@buengc.BU.EDU> <12955@smoke.BRL.MIL> <5879@buengc.BU.EDU> <Z4O3P:2@xds13.ferranti.com> <5904@buengc.BU.EDU> <0:P3-A6@ggpc2.ferranti.com> <5916@buengc.BU.EDU> <:0T3AHF@xds13.ferranti.com> Reply-To: bph@buengc.bu.edu (Blair P. Houghton) Followup-To: comp.std.c Organization: Boston Univ. Col. of Eng. Lines: 47