I need to force IAR tp to use some Cortex-M0 + instruction in some part of my code during encoding with C.
Please do not offer pure asm functions or inline asm etc.
I managed to do this for 51 instructions, but could not; ADR, BLX, RSBS, SBCS, SXTH.
Optimization is disabled for this function (#pragma optimization = none)
I tried many things, considering the behavior of teams. But the IAR prevailed with the same function with different instructions.
Has anyone struggled with such an unnecessary thing before, or does anyone have an idea?
source share