Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/30/07 13:27
Read: times


 
#141366 - Optimisers are not stupid!
Responding to: ???'s previous message
Erik Malund said:
TURN OFF THE STUPID OPTIMIZER

optimisers are not stupid!

Optimisers are very cunning, and very clever indeed!
And that's the trouble - you also need to be very smart to work out what the optimiser has done, and then still be able to follow your code.

You're always asking for trouble if you use a tool that you don't understand...

So, if you don't need the optimiser, do as Erik says and turn it off;
If, however, you do need the optimiser (for code size and/or speed), then you're going to have to learn how to live with it - and, of course, that gets much harder with the higher levels of optimisation...!

Read this thread, which discusses the trade-offs between optimisation and debugability:
http://www.8052.com/forum/read.phtml?id=140088

List of 5 messages in thread
TopicAuthorDate
Keil PK51 problem            01/01/70 00:00      
   I guess the following            01/01/70 00:00      
      Optimisers are not stupid!            01/01/70 00:00      
         just like medicine            01/01/70 00:00      
   Keil C51 Compiler            01/01/70 00:00      

Back to Subject List