Why Thumb-2 only allows very limited access to the PC?
Paul Brook
paul@codesourcery.com
Thu Jan 7 11:05:00 GMT 2010
On Thursday 07 January 2010, Richard Earnshaw wrote:
> On Wed, 2010-01-06 at 18:26 +0000, Paul Brook wrote:
> > On Wednesday 06 January 2010, Carrot Wei wrote:
> > > So thumb2 can also use the instructions similar to thumb1, right? It
> > > potentially has better performance and smaller code size.
> >
> > Technically yes, however in ARMv7 the relevant instruction (add.n <reg>,
> > pc) is deprecated.
>
> Where'd you get that idea?
>
> Annex D of the ARM ARM says that the 16-bit instructions that add SP and
> PC together (writing either SP or PC) are deprecated
You are correct, I misread that section.
Paul
More information about the Gcc
mailing list