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.
Hi Mike, Thanks for quick reply.
Yes I am simply trying to learn the tool.
I agree you. I can't compromise the reliability for extra performance.
As most of the embedded projects are done in 'C'. And if 'C' can't support these 'special instructions', What's the use of these features??
" 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.