EmbDev.net

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


Author: Rajiv Kumar (Company: learner) (rajiv)
Posted on:

Rate this post
0 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

Author: Rolf Magnus (Guest)
Posted on:

Rate this post
0 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.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.