Message-ID: <00a901bda7b0$31be9c20$ea023ace@alpha> From: "Brian Bacon" To: Subject: Optimization Question Date: Sat, 4 Jul 1998 17:59:40 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Precedence: bulk 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?