I used gcc 3.2 that comes with SuSE 8.1.On Fri, Oct 18, 2002 at 06:47:15 +0000, Stefan Nitschke wrote: > -O3 with C is broken, i got an endless loop!What gcc version? What flags did you use with C?
Today i changed the initial values to a=0.5; b=0.0000001; x=0.1; and now
-O3 works!?? Here are the results:
C: -O3 -march=pentium
user 0m11.380s
C++: -O3 -march=pentium
user 0m11.960s
BTW to my surprise today i was able to use ardour without freezing my machine
as it always did last week. I didnt changed the system and used the same binaries.
I never saw such a random problem on a linux box before.
That would be a bad thing.The test I did had the C code using a struct, and I used the . syntax for c++ method calls FWIW. I'l dig out the code in a min. I think it was loop unrolling that was crappy in c++.
- Stefan
_________________________________________________________________
Broadband? Dial-up? Get reliable MSN Internet Access. http://resourcecenter.msn.com/access/plans/default.asp