I've translated the LLVM C bindings to FB, which you can get from here: https://sites.google.com/site/parkersnell/freebasic
There are instructions included, and a sample program that uses LLVM's JIT. It's tricky to get working though, especially if you're on a 64 bit system. Would this type of thing be a good candidate to include with the FB distribution? It could be really useful, and it also opens up the possibility of an LLVM emitter for FB someday.
LLVM Headers
Hmm, that's pretty cool. Feel free to submit the headers to the freebasic-headers project. It already has some other new headers, and I hope we can use it as the single source of headers in the future. The plan is to always include a basic/common/most-wanted set of headers in the all-in-one FB installer, or maybe just all of them.
I haven't done much with the C bindings either, but LLVM is surprisingly easy to work with once you get started, and very powerful. I think it could be a real possibility to bring FB into the 64 bit world too.
It looks like I may need to clean up my headers a little bit before submitting them. In the meantime they're on my google page if anyone wants to try it out.
It looks like I may need to clean up my headers a little bit before submitting them. In the meantime they're on my google page if anyone wants to try it out.