[M0] request for feature

Vasily Chekalkin bacek at bacek.com
Fri May 25 11:19:22 UTC 2012


Hello.

What about tristate cmp and trilabel jmpif? :)

(Half jocking there)

Bacek
On May 25, 2012 8:55 PM, "kjstol" <parrotcode at gmail.com> wrote:

> hi there,
>
> I'm making nice progress on M1, the C-like language that compiles to M0.
> However, I'm missing an essential op in M0, which is a comparison op
> like < or >. At least one of them is necessary in order to implement
> the <, >, <=, >= operators. the unary minus (-x) also could use it,
> but adding a "neg" opcode would be sufficient for that of course.
>
> So, the request is to add at least 1 op to M0, namely either ">" or
> "<". (gt, lt). Both is preferable, but if it's essential to keep the
> number of ops to a minimum, then 1 is fine. (One could argue that we
> could get rid of "mul_i" as that can be implemented by repeatedly
> adding... :-)
>
> best regards,
> kjs
> _______________________________________________
> http://lists.parrot.org/mailman/listinfo/parrot-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.parrot.org/pipermail/parrot-dev/attachments/20120525/cb5ea42b/attachment.html>


More information about the parrot-dev mailing list