This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Porting GCC: setting lenght-atrribute
- To: Denis Chertykov <denisc at overta dot ru>
- Subject: Re: Porting GCC: setting lenght-atrribute
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Mon, 14 Feb 2000 17:25:24 +0000 (GMT)
- CC: =?UNKNOWN-8BIT?Q?Anja_M=FCller?= <Mueller-Lehnitz at t-online dot de>, gcc at gcc dot gnu dot org
> Mueller-Lehnitz@t-online.de (Anja Müller) writes:
..
> > to set the length-attribute ? Is there a possibility to set an attribute
> > in the Output Template ?
Denis Chertykov:
> I'm use ADJUST_INSN_LENGTH in my port (Atmel avr).
..
Another approach is to use constraint letters for the different constant
values, so that you can have different insn alternatives for the different
lengths.
Or, even better, if the different length are due to emitting different
sequences of insns, you can use define_split patterns to split the
insn after reload. This will also give additional opportunities for
scheduling.