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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/05/08 07:15
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#156407 - It is not like that
Responding to: ???'s previous message
First debugging optimized code May be hard, or not. The compiler may combine lines, eliminate code that does not thing, not perform calculations that are not used, and other neat tricks. That means the code may not single step or take a break point where you need it.
Second code that does not work when it is optimized may still be the coders fault. Just because the code works that does not mean it is correct and bug free. That means optimizing, adding code or variables, anything may make it fail. newbies are very quick to blame the compiler.

Third compiler bugs they do exist. If you "do not want" take the time to send it to the manufacturer then tough. Unless the company has a reputation for not fixing bugs. Most companies will accept bug even if you support has expired. Modifying the compiler output to fix a bug to me would be the final act of desperation. Making the same fix after each compile. Documenting it to be sure you can still do it next year. Or the next guy can do it.

List of 22 messages in thread
TopicAuthorDate
Why Is Debugging Optimized Code Such an Issue?            01/01/70 00:00      
   Usually not            01/01/70 00:00      
      False Assumptions            01/01/70 00:00      
         "language specification" ??            01/01/70 00:00      
         Do not assume it is that easy            01/01/70 00:00      
            Common Stuff Leading To Errors            01/01/70 00:00      
               "common stuff" falling apart when optimized            01/01/70 00:00      
               How broken things work            01/01/70 00:00      
   It is not like that            01/01/70 00:00      
      A bad workman blames his tools            01/01/70 00:00      
         A common side effect of optimisation            01/01/70 00:00      
      Newbies            01/01/70 00:00      
   another good reason            01/01/70 00:00      
      a rule of thumb            01/01/70 00:00      
         excellent advice, however - and            01/01/70 00:00      
         Defeatist?            01/01/70 00:00      
            Or turn it down as needed            01/01/70 00:00      
               Using Pragmas During Debugging            01/01/70 00:00      
               Free lunch?            01/01/70 00:00      
                  a dream            01/01/70 00:00      
                     If it were easy everone would be doing it.            01/01/70 00:00      
            you can't            01/01/70 00:00      

Back to Subject List