EmbDev.net

Forum: ARM programming with GCC/GNU tools AT91SAM9G20 dsp extensions.


Author: Michele venturi Misha (micheleventuri)
Posted on:

Rate this post
0 useful
not useful
How is it possible to enable the usage of ARMv5T core DSP extensions in
AT91SAM9G20 at the gcc compiler level ?
Where can I find benchmarks about the processing efficiency of such
extensions ?
Thank you in advance for your attention.

Author: Clifford Slocombe (clifford)
Posted on:

Rate this post
0 useful
not useful
Michele venturi Misha wrote:
> How is it possible to enable the usage of ARMv5T core DSP extensions in
> AT91SAM9G20 at the gcc compiler level ?

The DSP extensions are an intrinsic part of the ARM926EJ-S, so you will
at least have to set the -mcpu option to -mcpu=arm926ej-s (that much you
could get from the manual:
http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/ARM-Op...

Of course that is no guarantee that the compiler will use such
extensions, in fact I would say that it is unlikely, however it should
make the instructions available to the in-line assembler so you can
hand-optimise your code in assembler.

Clifford

Author: Michele venturi Misha (micheleventuri)
Posted on:

Rate this post
0 useful
not useful
Thanks for your prompt support.

Now the task is to check the different compilers.
Is someone knows some of them is actually using the ARMv5t extended
instructions please let me know.


Clifford Slocombe wrote:
> Michele venturi Misha wrote:
>> How is it possible to enable the usage of ARMv5T core DSP extensions in
>> AT91SAM9G20 at the gcc compiler level ?
>
> The DSP extensions are an intrinsic part of the ARM926EJ-S, so you will
> at least have to set the -mcpu option to -mcpu=arm926ej-s (that much you
> could get from the manual:
> http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/ARM-Op...
>
> Of course that is no guarantee that the compiler will use such
> extensions, in fact I would say that it is unlikely, however it should
> make the instructions available to the in-line assembler so you can
> hand-optimise your code in assembler.
>
> Clifford

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.