• When declare a variable to be static?
    Can someone give some explains on when to declare a variable to be static? What is the difference with extern one?
  • __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="" ...
  • far const declaration
    Hello, I'm using Silab IDE Simplicity Studio and MCU EFM8BB31F16GB. I'm try to locate const array in code memroy space, but I've been not able to find the correct syntax to do that. Searching the...
  • Static declaration error
    Code: static unsigned int timer[num_timers]; Error: TIMER_MODULE.C(6): error C221: non-constant case/dim expression An error has been generated while declaring an array in static. Or else...
  • Cx51 "const far" struct declaration
    Hello, I'm having some problems regarding const far memory type in Cx51... Using the following declarations, the variables aren't being initialized correctly, and accessing them, results in values...