Derived Operands

Frank Ch. Eigler fche@redhat.com
Fri Oct 6 19:36:00 GMT 2000


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
-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.2 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE53ow1VZbdDOm/ZT0RAuyXAJ4sAVhrnaSzLliXxkmp41/oCTUefgCeIpnO
3JAR0KKleikk9g1gvIObFgA=
=Nj7j
-----END PGP SIGNATURE-----


More information about the Cgen mailing list