dmjcunha <> writes:
> On Nov 15, 4:26Â*pm, Seebs <usenet-nos...@seebs.net> wrote:
>> On 2011-11-15, dmjcunha <dmjcu...@gmail.com> wrote:
>>
>> > $6 = 10 Â* Â*<-------------- here I don't understand. There was no
>> > computation with rmid and it changed strangely to 10.
>>
>> Turn off optimization when trying to debug stuff like this. Â*The
>> generated code is not necessarily doing everything in the order it was
>> written in. Â*For the compiler you're probably using, this is spelled
>> "-O0".
[...]>
> Strange, I tried "-O1" and the problem was solved.
> James Kuyper, thank you for the explanation.
If changing the optimization level changes the behavior of your code, it
probably indicates a bug in your code. Most likely your program's
behavior is undefined.
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"