AT91SAM9G20 dsp extensions.

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-Options.html#ARM-Options

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
OP
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-Options.html#ARM-Options
>
> 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

A question of your own? This thread is over 17 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.