H8/300H code size issues (RTX_COSTS)
tm
tm@mail.kloo.net
Wed Nov 13 18:01:00 GMT 2002
On Wed, 13 Nov 2002, Kazu Hirata wrote:
> Hi Toshi,
>
> > > > BTW, I've been looking at code size issues on the H8/300H, and I've
> > > > found some interesting things lately.
> > >
> > > For at least several months, I've kept a patch for shift insn portion
> > > of RTX_COSTS. I just tried the patch again, and saw that about 800
> > > lines of assembly code were cut down in newlib.
> > >
> > > This may not reduce your code by 50% but may be a good starting point.
> > >
> > > Would you mind sending me a preprocessed copy of your code?
> >
> > Will send in private mail to avoid torturing POTS modem users.
>
> Thanks.
>
> I added lots of insn patterns for the combiner to exploit and cut down
> 411 lines, excluding labels, which amounts to more than 10% of the
> original.
>
> Although making the combiner happy isn't the only thing to do, I do
> think that we have to teach h8300.md how to take advantage of the
> how registers are configured.
Do you mean properly describe the intraregister byte- and word-moves, or
are you referencing some other problem?
Toshi
More information about the Gcc-bugs
mailing list