• Overkeen Optimisation of Volatile variable
    I have ported some code to an 8051 based processor using Keil C51 v7.06 (from Cosmic for ST7). The code worked fine with Cosmic, and indeed nearly all of it works with C51. One area is causing trouble...
  • Optimising C++
    I've ported some code from C to C++ and I'm shocked at how much more slowly it runs. I've written a lot of C++ in the past, so I know I haven't done anything absurdly inefficient, but execution times...
  • volatile
    Hi, when keyword volatile is used in the C programming...i have studied in one book that this volatile keyword is a directive to the compiler's optimizer that variables declared as volatile will not...
  • volatile ?
    What is the use of declaring a variable volatile... what it means if it is specified volatile?
  • Weird optimisation compiler bug?
    Hi there, Included below is a sample disassembly output of some code I just discovered not behaving the way I think it should. Basically, it seems the compiler has determined that there is no need...