• compiler optimisation bug
    There is compiler optimisation (O2) which you may want to be aware of. A while back (Oct 2010) I found a compiler optimisation bug with optimisation level 2 (O2) in MDK V4.12 (Armcc V4.1.0.481)....
  • Compiler optimisation
    Hello, 1.when i use printf with no var_args then the compiler should call puts instead of printf. ex1: #include <REGX51.H> #include <stdio.h> void main(void) { printf("This must call puts...
  • Weird C167 CS crash
    Hello all, I have a serious problem here. I am working with a C167 CS using legacy code. It is horrific, and I mean just that, but the strange part is that I am unable to remove some redundant functions...
  • 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...
  • "using 0" ==> weird bugs involving R0
    we just figured out that placing "using 0" after an interrupt handler definition is a bad idea. At least when using optimize 9,size, "using 0" tells the compiler not to bother pushing/popping R0. Then...