Mail Archives: djgpp/1998/07/04/21:04:23
Hello,
I have a small problem. I need to know how to tell gcc NOT to optimize a
certain section of code, it keeps doing it wrong! I am using -O2, my
application is graphic-intensive, so I want to at least keep the -O2. Is
there something I can put around my code to tell it to leave it the way it
should be?
The code looks something like this:
b=(a_computed_number);
f=b*c;
f always comes out wrong! I looked at the .S file gcc produces (with the -S
option) and it looks like it isn't doing anything at all to f. I just
copies something for one portion of memory to another (there isn't even any
multiplication!).
"All in all you were all just bricks in the wall" Pink Floyd - The Wall
----------------------------------------------------------------------------
-------------------------------
Brian Bacon - kyberteknik AT geocities DOT com
ICQ: 3218637
http://trr.home.ml.org/
GCS d- p- c++++ l- u e* m++(+++/---)@ s+/- n---@ h-- f+ g+ w++ t+ r x?
- Raw text -