[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] OT Generic C question
From: |
Wolfgang Wegner |
Subject: |
Re: [avr-gcc-list] OT Generic C question |
Date: |
Tue, 20 Sep 2005 17:15:16 +0100 |
On 20 Sep 2005 at 9:59, Mike Murphree wrote:
> Alexandru Csete said:
[...]
> > int i = 3;
> > i = i++;
> >
> > gave the values 3, 4 and 7 - each of them equally correct ;-)
>
>
> If writing software for a safety critical system which I occasionally do,
> I expect my compiler not to do "Bad Things"(TM) and it certainly violates
> POLA as well. Whether or not it is undefined behavior in the C standard
> makes little difference to me...
What do you want to say with this?
This is the bad code, the behaviour in this case is simply not
defined, and if somebody writes such code in a safety critical
system, he/she is definitely in the wrong place.
Of course, one compiler should (and probably will) give the same
result if compiled several times, but do not expect such crappy code
to be portable.
> Mike
Wolfgang
- Re: [avr-gcc-list] OT Generic C question, (continued)
- Re: [avr-gcc-list] OT Generic C question, Christopher X. Candreva, 2005/09/20
- Re: [avr-gcc-list] OT Generic C question, Joerg Wunsch, 2005/09/20
- Re: [avr-gcc-list] OT Generic C question, Jeff Barlow, 2005/09/20
- Re: [avr-gcc-list] OT Generic C question, David Kelly, 2005/09/20
- Re: [avr-gcc-list] OT Generic C question, Christopher X. Candreva, 2005/09/20
- Re: [avr-gcc-list] OT Generic C question, Brian Sidebotham, 2005/09/20
- RE: [avr-gcc-list] OT Generic C question, Ron, 2005/09/20
- RE: [avr-gcc-list] OT Generic C question, Mike Murphree, 2005/09/20
- Re: [avr-gcc-list] OT Generic C question, Alexandru Csete, 2005/09/20
- Re: [avr-gcc-list] OT Generic C question, Mike Murphree, 2005/09/20
- Re: [avr-gcc-list] OT Generic C question,
Wolfgang Wegner <=
- Re: [avr-gcc-list] OT Generic C question, Anton Erasmus, 2005/09/20
- Re: [avr-gcc-list] OT Generic C question, Nils Springob, 2005/09/20
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, David Kelly, 2005/09/19
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, Vincent Trouilliez, 2005/09/19
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, David Kelly, 2005/09/19
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, Vincent Trouilliez, 2005/09/19
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, Vincent Trouilliez, 2005/09/19
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, Vincent Trouilliez, 2005/09/20
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, David Kelly, 2005/09/20
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, Vincent Trouilliez, 2005/09/20