🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1314

Re: for(;;) vs. while(1) is a draw

#1314
From: Blair P. Houghton
Date: Tue, 29 May 1990 00:29
32 lines
1986 bytes
In article <0:P3-A6@ggpc2.ferranti.com> peter@ficc.ferranti.com (Peter da Silva) writes:
>In article <5904@buengc.BU.EDU> bph@buengc.bu.edu (Blair P. Houghton) writes:
>> In article <Z4O3P:2@xds13.ferranti.com> peter@ficc.ferranti.com (Peter da Silva) writes:
>> >I don't believe that is an operative statement. The quote you gave means
>> >the compiler can legally generate any code it likes for anything, so long
>> >as the semantics match the abstract machine.
>
>> When did I say otherwise?
>
>When you said the standard requires the compiler generate identical code
>for !while(1)! and !for(;;)!.

You're lucky I got it all out of my system flaming at Doug 'n' Guy,
the Freak Brothers of comp.std.c.

I did not say the standard requires a compiler to generate
code in any particular way.  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 think that's about the twelfth time I've said it.  From now
on, anyone who thinks otherwise goes on the clock and gets
a bill from me for my services.  I don't have time to play
games with little babies who whine "why?" every time I say
something, UNLESS they're paying me by the hour.  Then I have
all damn day.

				--Blair
				  "Either get an education or
				   utilize the one you told your
				   employer you'd earned."
Technical Details
Message-ID: <5916@buengc.BU.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!bu.edu!buengc!bph
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>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!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: <5916@buengc.BU.EDU>
Date: 29 May 90 00:29: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>
Reply-To: bph@buengc.bu.edu (Blair P. Houghton)
Followup-To: comp.std.c
Organization: Boston Univ. Col. of Eng.
Lines: 32