• ARMCC macro calculation bug
    Using ARM CC compiler V5.06 update 3 (build 300). I see some quirkiness with macro calculations when using a preprocessor macro that refers to other macros. It seems the value is byte trimmed. Tried...
  • ARMCC macro calculation bug
    Using ARM CC compiler V5.06 update 3 (build 300). I see some quirkiness with macro calculations when using a preprocessor macro that refers to other macros. It seems the value is byte trimmed. Tried...
  • Use MACRO C "#define value" in MACRO ASM
    I use KeilC uVision4 for 89C51 MCU. I use "Inline ASM Code", like this : void main() { #pragma ASM MOV R7, #( 80000/40000 ) #pragma ENDASM } -> When COMPILE, ASM result file give a...
  • Use MACRO C "#define value" in MACRO ASM
    I use KeilC uVision4 for 89C51 MCU. I use "Inline ASM Code", like this : void main() { #pragma ASM MOV R7, #( 80000/40000 ) #pragma ENDASM } -> When COMPILE, ASM result file give a...
  • printing sizeof() values
    I'm trying to print out sizeof() values for some of my structures. They are coming out incorrect. Here is a small table in which I've done this on different platforms: Linux : sizeof(TChannel) = 1460...