I made the windows port, the first example compiled and executed correctly.
I am sending a patch so you can test it if i didn't break linux compatibility.
Otherwise, I will look into deja-gnu testing, perhaps can compile it on windows. I will
also add other beckend in the future (Sparc, PowerPC). I hope windows using
Visual C++ will be soon officially supported
About the problem I had with system and ltdl.c, it was resolved preaty easily by defining
__WINDOWS__ globally in project. I also added a global macro for strtoll because the
windows version is strtol (not strtoll). macro replaces strtoll with strtol and it compiles.
I found really a lot of warnings in the project. Should I clean them? GCC probably doesn't
throw them, so I don't know ... I don't even want to try to compile with VS8 which is even better at warnings ...
Otherwise, I hope to use llvm (and of course also the port) for my project, baadengine (www.baadengine.org). llvm would
serve as a script compiler (could be static or to bytecodes and JIT-ed at execution). I have already made the compiler
(parsing, code extraction), all I need is to send it to LLVM to process it for me. So you can soon expect a new
frontend for BSF scripts (Baadengine scripts format - java/C# like language, used for this project).
llvm.patch (31.8 KB)