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

Peter da Silva peter at ficc.ferranti.com
Sun May 27 06:57:02 AEST 1990


In article <5904 at buengc.BU.EDU> bph at buengc.bu.edu (Blair P. Houghton) writes:
> In article <Z4O3P:2 at xds13.ferranti.com> peter at 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(;;)!.
-- 
`-_-' Peter da Silva. +1 713 274 5180.  <peter at ficc.ferranti.com>
 'U`  Have you hugged your wolf today?  <peter at sugar.hackercorp.com>
@FIN  Dirty words: Zhghnyyl erphefvir vayvar shapgvbaf.



More information about the Comp.std.c mailing list