Working jitter

31 views
Skip to first unread message

Go Phone

unread,
Dec 31, 2021, 10:23:42 PM12/31/21
to inferno-os
Hello,

Can anyone with a working inferno jit, please run this program with and without the jit and post the output?

include "sys.m";
        sys: Sys;
include "daytime.m";
include "draw.m";

Progtest: module
{
        init: fn(nil: ref Draw->Context, args: list of string);
};

init(nil: ref Draw->Context, args: list of string)
{
        sys = load Sys Sys->PATH;
        daytime := load Daytime Daytime->PATH;
#       i := 0;
        j := 0;

        sys->print("Testing the prog scheduler\n");
        sys->print("    start %s\n", daytime->time());
        for(i := 0; i<1000*1000*1000; i++){
                ;
        }
        sys->print("j %d i %d\n", j, i);
        sys->print("      end %s\n", daytime->time());
}

Thanks and Sorry for the bother

Valery Ushakov

unread,
Dec 31, 2021, 10:48:08 PM12/31/21
to inferno-os
NetBSD/powerpc (mac mini g4) with jit:

; ./progtest
Testing the prog scheduler
    start Sat Jan 01 03:41:40 GMT 2022
j 0 i 1000000000
      end Sat Jan 01 03:41:48 GMT 2022

without:

; ./progtest
Testing the prog scheduler
    start Sat Jan 01 03:39:17 GMT 2022
j 0 i 1000000000
      end Sat Jan 01 03:41:18 GMT 2022

This inferno tree is about 2 years old, sorry.  It's the one I had handy.

Go Phone

unread,
Jan 1, 2022, 7:52:51 AM1/1/22
to Valery Ushakov, inferno-os
> This inferno tree is about 2 years old, sorry. It's the one I had handy.

Thanks, that was helpful.
Reply all
Reply to author
Forward
0 new messages