EmbDev.net

Forum: ARM programming with GCC/GNU tools ADC and QADD instruction


von Rajiv K. (Company: learner) (rajiv)


Rate this post
useful
not useful
Hi all,

I want ARM cross compiler to emit assembly for add with carry (ADC) and 
saturation add (QADD). what should be the testcase in 'C' for this.

I too tried many, but no one emitted.

Regards,
Rajiv

von Rolf Magnus (Guest)


Rate this post
useful
not useful
> I want ARM cross compiler to emit assembly for add with carry (ADC) and
> saturation add (QADD). what should be the testcase in 'C' for this.

If you want to ensure that exactly these instructions are used, the 
simplest way would be to put them into your code as inline assembler.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.