This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


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

Re: Derived Operands


Hi -

On Thu, Oct 05, 2000 at 04:28:15PM -0700, Tracy.Kuhrt@microchip.com wrote:
> I am trying to use derived operands.  I know that they are still a work in
> progress, but this is functionality that will help me with the CPU that I
> am porting with CGEN. [...]
> 
> ; Derived operands
> (define-derived-operand
>    (name m3-dst-reg-direct)
>    [...]
>    (encoding (+ m3-dst-reg))
>    [...]
> 
> (define-derived-operand
>    (name m3-dst-reg-indirect)
>    [...]
>    (encoding (+ m3-dst-reg))
>    [...]
> [...]

It looks wrong for these two encodings to be identical.  The anyof-operand
will have a tough time telling the two alternatives apart.

> [error follows:]
> 13* [string-append "  & " ...
> 14* [gen-sym #:unbound]
> [...]

#14 is the first sign of trouble.

> Any ideas where the problem might be?

Look at the encoding, then at the getter/setter pairs.


> Also, as a side note, is there any timeframe for when derived operands will
> be completed?

We have been completing parts as our various ports have required.  This being
an open-source type project, it is hard to predict timeframes such as this.
Perhaps you might be interested in helping fund the work?


- FChE

PGP signature


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