Hi friends, I am using TI LM3s6965 micro controller.
I read the thumb-2 instruction set. Some instructions are interesting but as 'C' programmer I don't know how to write code to generate these instruction BFI, BFC.. etc
Is keil C compiler have special macro/function/syntax to generate these instruction?? Or some coding tricks??
Please suggest any application notes which demonstrate "How to write efficient C code for cortex-M3".
Thanks & Regards, Kishore.
" if 'C' can't support these 'special instructions'"
No, you're missing the point!
The point is not that 'C' can't support these instructions!
The point is that you, the programmer, have no control over the choice of instructions when you write in a HLL. The choice of instructions is down to the compiler - not you.