ldrb vs ldrh in gcc-3.4.4 (ARM)
Bill Gatliff
bgat@billgatliff.com
Wed Aug 17 14:13:00 GMT 2005
Steven:
Steven Scholz wrote:
> Hi,
>
>> And I don't understand why he is using two ldrb instructions!
>> Both compilers were called with "-g -O0" Using -O3 creates smaller
>> code but still uses ldrb.
>
>
> Passing "-march=armv4" seems to help. Passing "-mcpu=arm920t" instead
> helps too.
>
> I used Dan's crosstool to build the toolchain. How can I built a tool
> chain that makes "good code" (TM) for an arm920t _by default_?
>
Doesn't crosstool have an arm7tdmi example? I'd start there.
b.g.
--
Bill Gatliff
bgat@billgatliff.com
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list