Owi.LinkSourceModule to link a simplified/extern module and producing a runnable module along with a link state.
type module_to_run = {module_ : Simplify.simplified_module;env : Env.t;to_run : (int, Types.func_type) Types.expr' list;}runnable module
type exports = {globals : Env.t' Global.t StringMap.t;memories : Memory.t StringMap.t;tables : Env.t' Table.t StringMap.t;functions : Env.t' Value.Func.t StringMap.t;defined_names : StringSet.t;}runtime exported items
type state = {by_name : exports StringMap.t;by_id : exports StringMap.t;last : exports option;}link state
link a module with a given link state, producing a runnable module and a new link state
register a module inside a link state, producing a new link state
extern modules
register an extern module with a given link state, producing a new link state