🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1339

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

#1339
From: Peter da Silva
Date: Wed, 30 May 1990 15:13
18 lines
1378 bytes
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.

Perhaps you should try turning on your English language optimiser?
-- 
`-_-' Peter da Silva. +1 713 274 5180.  <peter@ficc.ferranti.com>
 'U`  Have you hugged your wolf today?  <peter@sugar.hackercorp.com>
@FIN  Dirty words: Zhghnyyl erphefvir vayvar shapgvbaf.
Technical Details
Message-ID: <:0T3AHF@xds13.ferranti.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ficc!peter
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>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ficc!peter
From: peter@ficc.ferranti.com (Peter da Silva)
Newsgroups: comp.std.c
Subject: Re: for(;;) vs. while(1) is a draw
Message-ID: <:0T3AHF@xds13.ferranti.com>
Date: 30 May 90 15:13:16 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>
Reply-To: peter@ficc.ferranti.com (Peter da Silva)
Organization: Xenix Support, FICC
Lines: 14