connorjacobsen / iris

The Iris programming language
MIT License
8 stars 1 forks source link

Replace iris shell script with OCaml #6

Open connorjacobsen opened 8 years ago

connorjacobsen commented 8 years ago

Currently the iris executable is a shell script which transforms the generated LLVM module into an executable by calling llc to generate assembly and then calling clang to generate object code and then generate the executable.

It would be really nice if this was driver by an OCaml module instead, which would be able to include #5 and call out to the LLVM components as needed.

Ideally, it would be possible to wrap these components with an OCaml interface so that the entire step could be pure OCaml code rather than spawning a shell and calling out to llc and clang, although that may be a decent hack for starters.

connorjacobsen commented 8 years ago

This tool will need to determine dependencies and order those dependencies for compilation / linking once imports are added.