• Absolute Variable Location: compilation error using __at
    Hi, I'm trying to use "__at" to locate a variable to a specific address: void delay (void) { unsigned long cont __at 0x4000000; for (cont = 0; cont < 10000;cont++); } But the compiler...
  • Absolute Variable Location: compilation error using __at
    Hi, I'm trying to use "__at" to locate a variable to a specific address: void delay (void) { unsigned long cont __at 0x4000000; for (cont = 0; cont < 10000;cont++); } But the compiler...
  • __attribute((used))has been declared, but the variable is still deleted when linking
    test code: int TestMain() { g_TestTest++; return 0; } #pragma clang section rodata=".rti_fn.6" __attribute((used)) const init_fn_t __rt_init_TestMain = TestMain; #pragma clang section rodata="" ...
  • __attribute((used))has been declared, but the variable is still deleted when linking
    test code: int TestMain() { g_TestTest++; return 0; } #pragma clang section rodata=".rti_fn.6" __attribute((used)) const init_fn_t __rt_init_TestMain = TestMain; #pragma clang section rodata="" ...
  • __at for Function Address
    void __at(0x2000) test(void) { int i; i++ } This Function is right by MDK3.05, but is warning by MDK3.24? warning:: Sources\BSP.c(50): warning: #1202-D: invalid attribute for function "test" ...