<div dir="ltr"><span class="">
</span><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It's a lot of macros defined in the 'jit.h' and 'gambas.h' file located in gb.jit, and directly put at the start of the C file.<br></blockquote><div><br></div><div>Yes, I noticed.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Of course you have to know how the interpreter works to understand the code.<br></blockquote><div><br></div><div>Well, example generated C code for "for to" loops are easy to understand. But messy for human eye!<br></div><div></div><div> </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

The C compiler is used there as a sophisticated assembler. It's not really C.<span class=""><br></span></blockquote><div><br></div><div>Also noticed the similarity.<br></div><div> </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


</blockquote>
</span>
You must use GB_JIT_DEBUG=1 and run your project from the command-line. That way, you will know if there is a unimplemented bytecode or a crash (i.e. bad C code).<br></blockquote><div><br></div><div>I did not run it from command line, nor did I used the debug on that. I just got wrongly identified variable types (X was given, expected Y).</div><div>I'm quite sure it is not fruitful to report any of that yet. It's very probably about unimplemented stuff.<br></div><div><br></div><div><br></div><div>Jussi<br></div></div><br></div></div>