GNU ARM Assembler - no support for SRS and RFE instructions?

Aug 28, 2008 4 Replies

The GNU ARM assembler doesn't appear to support SRS and RFE which are supported in ARM6 and higher I believe (I get "bad instruction"). I'm using version 2.16.1 with the option -marm7tdmi when I assemble. Any help would be greatly appreciated.


Are these instructions valid on an ARM7TDMI which implements ARMv4T?

Your GCC version seems to be very outdated. I'm using version 4.4.0.

-- Regards, Richard.

  • formatting link
    &
    formatting link
17 official architecture ports, more than 6000 downloads per month.

  • formatting link
    Certified by TÜV as meeting the requirements for safety related systems.

Op Thu, 28 Aug 2008 07:17:27 +0200 schreef Michael :

The ARM7 doesn't support these instructions. I guess you are confusing ARM6 with ARMv6. The GAS 2.16.1 does claim to support that.

Gemaakt met Opera's revolutionaire e-mailprogramma: http://www.opera.com/mail/

The assembler is part of binutils, which is currently on version 2.18, so 2.16.1 is not too old (the numbering of binutils is totally separate to that of gcc).

Boudewijn Dijkstra wrote:

Wikipedia has a table showing which cores implement which revision of the ARM architecture, e.g., the ARM7DTMI core implements the ARMv4T architecture.

formatting link

According to that table, ARMv6 architecture is only used in the ARM11 and Cortex-M1 cores, so you won't get SRS and RFE instructions in an ARM7DTMI.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required