|Re: The semicolon habit firstname.lastname@example.org (1995-05-10)|
|Re: The semicolon habit email@example.com (1995-05-11)|
|Re: The semicolon habit firstname.lastname@example.org (1995-05-15)|
|Re: The semicolon habit Paul_Long@ortel.org (1995-05-17)|
|From:||Paul_Long@ortel.org (Paul Long)|
|Date:||Wed, 17 May 1995 04:49:26 GMT|
>email@example.com (Daniel J. Salomon) writes:
>> while(x < 10.0);
>>and not notice the error. There is no syntax error here, but this
>>is almost certainly a run-time error.
>To my mind this is a *semantic* rather than syntactic flaw in C.
[Keep in mind that if x is volatile, that's a reasonable thing to write.
It's a subtle issue. -John]
We wrote a C compiler for a client's DSP chip. The sample code they gave us
had lots of these indefinite while loops. They looped on a volatile
memory-mapped I/O location until it, for example, went non-zero. They use
this idiom to synchronize with other components in their execution
Return to the
Search the comp.compilers archives again.