This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: ldrb vs ldrh in gcc-3.4.4 (ARM)


On Wed, Aug 17, 2005 at 02:46:38PM +0100, Richard Earnshaw wrote:

> > > I noticed that gcc-3.4.4 for ARM is using byte wise loading instructions 
> > > although word wise would be much better. Does anyone know why? gcc-3.3.3 is 
> > > doing it as I would expect.
> > 
> > Check your -march= setting.
> > 
> > p.
> 
> Or it might be a different 'default' CPU during configuration.

gcc 3.3.3 defaults to arm7tdmi, whereas gcc 3.3.[456] and gcc 3.4.?
default to arm6.

Steven, I suspect that if you use gcc 3.3.4, you'll also see the
byte loads.  (Not all ARM models support halfword loads and stores.)


--L

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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