[Gambas-user] First nuclear trial!

Jussi Lahtinen jussi.lahtinen at gmail.com
Sat May 26 20:44:38 CEST 2018


Great! Amazing to see it already working, even when only simple code, but
still!
Just tell me when you need someone to test the new JIT!


Jussi

On Sat, May 26, 2018 at 4:33 PM, Benoît Minisini <g4mba5 at gmail.com> wrote:

> ...and I won't stop because of a tweet.
>
> Here is the generated code for the curious:
>
> // Main
>
> void mmain_2(uchar n)
> {
>   mmain_2_IMPL();
> }
>
> static void mmain_2_IMPL()
> {
>   int l0 = 0;
>   int l1 = 0;
>   int l2 = 0;
>   int l3 = 0;
>
>   JIT.hello();
>   l1 = 1;
>   l2 = 2;
>   static ushort s0 = 0x7C05;
>
> (PUSH_i(1),PUSH_i(l1),PUSH_t(GET_CHAR(32)),PUSH_i(l2),PUSH_t
> (GET_CHAR(32)),CALL_SUBR_CODE(s0));
> __L14:;
>   bool t;
>   t = (l0 < 32);
>   if (!t) goto __L44;
>   l3 = (l1 + l2);
>   static ushort s1 = 0x7C03;
>   (PUSH_i(1),PUSH_i(l3),PUSH_t(GET_CHAR(32)),CALL_SUBR_CODE(s1));
>   l1 = l2;
>   l2 = l3;
>   l0 = (l0 + 1);
>   goto __L14;
> __L44:;
>   static ushort s2 = 0x7C02;
>   (PUSH_i(1),PUSH_t(GET_CHAR(10)),CALL_SUBR_CODE(s2));
> __RETURN:
>   return;
> }
>
> --
> Benoît Minisini
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180526/7d56a5fa/attachment.html>


More information about the User mailing list