Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

ARM instructions conditional execution

ARM instructions conditional execution

2005-04-19 by varuzhandanielyan

Does any of available C compilers support the conditional execution of
the ARM instructions?
Is there any rules, how to arrange the C code, to be sure, that it
will be translated to a strait segment of code, only with conditional
execution and without branches?

Varuzhan

Re: [lpc2000] ARM instructions conditional execution

2005-04-19 by Richard

Any half decent ARM C compilers should. Ours does for sure because I put it 
in :-) and I am sure GCC/IAR/GH/ADS do too. I would be really surprise if 
Keil doesn't etc. So that covers everybody.

The branch tradeoff point is about 3 instructions so short bodies are good 
but really, don't worry it, just write code naturally and let the compiler 
does its job.

At 11:07 PM 4/18/2005, you wrote:

>Does any of available C compilers support the conditional execution of
>the ARM instructions?
>Is there any rules, how to arrange the C code, to be sure, that it
>will be translated to a strait segment of code, only with conditional
>execution and without branches?

// richard (This email is for mailing lists. To reach me directly, please 
use richard at imagecraft.com)

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.