jacob navia said:
Le 30/12/10 01:48, Keith Thompson a écrit :
You can't read Thompson. I said:
I haven't come around a processor that couldn't test for overflow.
Yes, you *also* said that, and it's perfectly true. That's not
what I was disputing.
I did not mention any flag. But you go on saying that, even if in
the text you QUOTED I said something different.
It's possible that I was confused about the context of the discussion;
this has been a very long thread.
In this thread, at Wed, 29 Dec 2010 09:32:37 +0100, in article
<
[email protected]>, available at
<
http://groups.google.com/group/comp.lang.c/msg/6f9d045e500a9288?dmode=source>,
you wrote:
There is no processor that hasn't an overflow flag.
*That* statement is the source of this entire argument. It is
incorrect, as has been demonstrated repeatedly; there *are*
processors that don't have overflow flags. The DEC Alpha
is an example, and not the only one.
Certainly it's possible to detect overflow on the DEC Alpha.
Nobody has said otherwise. It just uses a mechanism other than an
explicit overflow flag.
Furthermore, you've snipped the statement to which I was responding.
Here's some more of the context:
| jn>> C doesn't work if there is no floating point Mr Thompson.
|
| KT> It's not possible to have a conforming C implementation without
| KT> floating-point, but there have been plenty of implementations that
| KT> support floating-point in software. (I think there have also been
| KT> non-conforming implementations without FP; there's nothing wrong
| KT> with that.)
|
| jn>> That means that if a machine without overflow flag exists,
| jn>> it must be a very primitive one where C will not run in its
| jn>> standard form either.
|
| KT> I fail to see how this follows.
|
| KT> DEC Alpha. Again, do you understand the distinction between having
| KT> an overflow *flag* and being able to detect overflow? An explicit
| KT> flag is not the only possible mechanism. See my other followups.
You see, the DEC Alpha (clearly not a "very primitive" machine "where C
will not run in its standard form") does not have an overflow flag.
This is about *your* failure to distinguish between having an overflow
flag (as the DEC Alpha doesn't), and having a mechanism to detect
overflow (as the DEC Alpha certainly does).