For windows, the compile C library has the following issues ( I can't use the jar file due to this):
- Windows doesn't use mm_malloc.h, it uses malloc.h instead
- The external functions / variables need to be prefaces with "__declspec(dllexport)"
- The compiler complained that init_ints needs to return a value (or change the return type)
I also built your the code on my pi (not sure if anyone would ever use this for xel).
- The "-std=c99" option is needed for gcc
- The only gcc option of the ones you included that worked on the pi was "-Ofast"
Surprisingly, my little pi gets around 180kEval/s....both with your test version and the one in my git that includes the changes for win32.
Great news ;-) 180k on a pi is awesome!
Yeah, the return value was my mistake ... we don't need one!
Right now, the compilation process is somewhat "ugly". The ideal would be, if we did not need to issue a single "system" or "popen" command, doing all neccesary work from the executable itself. I have not yet found a way to link clang or gcc into the binary and compile the code "programmatically". I will keep trying.