Results 11 comments of logzero

WSL1 implements Linux API/ABI on top of Windows. WSL2 runs a virtualized Linux kernel instance from my understanding. So it should behave like Linux I guess. I am not using...

Mir gen works (for me). Interpreter should work too. Real long doubles and multiple return values are not supported (would be extensions to Windows ABI). I've toyed around with cmir,...

And I haven't tested the llvm bits at all, don't use them.

> I use CMake/MSVC and if I build on Windows would it work? Is there anything special about msys2? You'd have to write the cmake script. Msys2 (mingw/gcc) is a...

https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html GCC has C_INCLUDE_PATH as alternative to -isystem. That should do, as long as it is documented.

I am passing MIR_val_t values to MIR_interp. It turns out that the issue is that MSYS2 GCC is using 16 bytes long doubles, using builtins to handle them. To adhere...

> -mlong-double-64 I'll give it a try. I've checked MIR_interp with the debugger. The first error was that I did not pass the func nargs into MIR_interp but the number...

Sorry. Here is a minimal test.c https://gist.github.com/logzero/e3cc6a29d4d7649843eed3d28ca984dc MIR_interp fails on Windows and Linux (gcc 9.3.0). MIR_set_interp_interface and MIR_gen produce the expected result.

Here is a simple fix (there is probably a better way to do it) https://gist.github.com/logzero/d10e86976573eea98664033442e545fc

Cool. Should I close the issue (assume you've got your own todo list)?