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.
Currently the
iris
executable is a shell script which transforms the generated LLVM module into an executable by callingllc
to generate assembly and then callingclang
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
andclang
, although that may be a decent hack for starters.