LLVM Headers

User contributed sources that have become inactive, deprecated, or generally unusable. But ... we don't really want to throw them away either.
Post Reply
parkovski
Posts: 16
Joined: Apr 05, 2010 23:26

LLVM Headers

Post by parkovski »

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.
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Post by dkl »

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.
vdecampo
Posts: 2992
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Post by vdecampo »

I debated creating a BASIC that emitted LLVM. I never got around to actually testing LLVM to see how versatile it was.

[Sigh]Ahhh time.[/End Sigh]

-Vince
stylin
Posts: 1253
Joined: Nov 06, 2005 5:19

Post by stylin »

I cannot speak for the C API, but playing around with the C++ interface for a time was very fun and it seems well designed.
parkovski
Posts: 16
Joined: Apr 05, 2010 23:26

Post by parkovski »

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.
Post Reply