haumea-lang / haumea-rs

Haumea is an experimental language designed to be simple and easy to learn and program in.
MIT License
7 stars 2 forks source link

Compiling to LLVM? #18

Open BookOwl opened 7 years ago

BookOwl commented 7 years ago

Compiling haumea programs to LLVM IR would allow us to directly generate executables with out having to mess with a C compiler. This crate looks like it would work for us.

https://github.com/Wilfred/bfc https://bitbucket.org/tari/merthc https://bitbucket.org/tari/llvm-sys.rs

bates64 commented 7 years ago

A direct compiler would allow us to write a REPL, too :stuck_out_tongue_winking_eye:

jeandrek commented 7 years ago

@nanalan You could generate C, invoke gcc, and then run the executable, but that would probably be slow.