• Compiler generates bad code ?
    I have spent a lot of time on this. Here is my observation: I am porting a piece of GNU code to the MCB2130 card using the Keil toolset (including the limited compiler that comes with the board). I...
  • Code is not generated for the char data types
    main() { char c1,c2,c3; c1 = 10; c2 = 5; c3 = c1 * c2; } When I try to debug it in Debugger, I find code is not generated for char data types. However if define it as int then the code is...
  • Is the code generated by uvision3 relocatable?
    Hi, Is the compiled code relocatable in uVision3? Meaning that if I burn it as a bin file at a different starting address and jump to it (and redirect the interrupt vectors) it will work?
  • Wrong code generation.
    I'm using the Keil C251 Compiler Optimizing 80251 C Compiler Version 1.x (DLL 1.24) The following instruction is in a function called after an SIO Interrupt: byLength = abyRecBuf[0] And the...
  • A bug in C51 code generation
    I think Keil C51 version 8 has a bug in the code generation. The following source shows the bug: typedef unsigned char BYTE; typedef unsigned short WORD; #define FIXED_VAULE 64 #define MAKEWORD...