This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why Thumb-2 only allows very limited access to the PC?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]