• Linker - UNUSED(REMOVE)
    Hi, the linker option UNUSED(REMOVE) is great. But now I have a function, that I don't use. But I want to include it on the binary. What I have to do, that this (one) function will not remove? ...
  • using UNUSED(REMOVE) linker directive
    Hello, when i add linker directive UNUSED(REMOVE) in B51 misc tab , i get error FATAL ERROR L204: INVALID KEYWORD POS:1219 my intention is to force linker to remove unused functions. any pointer...
  • Redundant code removal
    While I was trying to fit an application in a limited space I noticed that the compiler/linker does not appear to remove functions that are uncalled across C files. I have a number of C files that...
  • -O1 removes useful code
    I have the following snippet of code, which toggles one of the GPIO lines: PINSEL1 &= ~(0x0000000C); IO0SET |= MY_GPIO_MASK; IO0CLR |= MY_GPIO_MASK; PINSEL1 |= 0x00000008; This works fine...
  • Linker configuration or debuggable libraries
    Hello forum, I've got the following situation: I am writing a huge library in C++ with many classes. My Cortex-M3 applications are using this library. Right now I am putting the library source files...