• strtod() buggy ?
    Hi all, I encountered a problem when using the stdlib-function double strtod (const char *string, char *endp); --- char *End; float fValue = (float)strtod(String, &End); --- The conversion...
  • strtod() buggy ?
    Hi all, I encountered a problem when using the stdlib-function double strtod (const char *string, char *endp); --- char *End; float fValue = (float)strtod(String, &End); --- The conversion...
  • Cast converted volatile access not generating buggy code
    I have a code snippet as given below static unsigned int ticks; void IRQ_SomeTimer(void) { ticks ++; } int main() { int sav_ticks; sav_ticks = ticks; while (sav_ticks + TIME_TO_WAIT > *(volatile...
  • Cast converted volatile access not generating buggy code
    I have a code snippet as given below static unsigned int ticks; void IRQ_SomeTimer(void) { ticks ++; } int main() { int sav_ticks; sav_ticks = ticks; while (sav_ticks + TIME_TO_WAIT > *(volatile...
  • C51 Compiler: Inconsistent Behaviour of Bit Shift Operator (<<)
    Compiler Version: Keil C51 5.0 I experienced some unexpected behaviour with the Keil C51 compiler. I have recreated the issue in the below code snippets. Case 1: Result of bit shift operator...