-
Notifications
You must be signed in to change notification settings - Fork 5
Integration with Ravi
Dibyendu Majumdar edited this page Nov 28, 2020
·
2 revisions
- Ravi should be able to invoke the compiler library using a
load
function, supplying the source as the argument. - The compiler library needs to be able to construct the data structures such as closure, proto, etc. in Ravi runtime.
To facilitate the compiler and Ravi interaction, we have an interface defined in ravi_api.h. This interface is used by Ravi to invoke the compiler.
The exported function raviX_compile()
is implemented by the compiler library.
The functions in this interface are provided by the host Ravi environment. These functions support all the data structure manipulations as well as C to binary translation that is expected to be implemented by the host Ravi environment.