Skip to content
mrbrdo edited this page Oct 20, 2014 · 3 revisions

Can I use compiled and non-compiled mruby code at the same time?

You can if you define MRBB_COMPAT_INTERPRETER in build/mrbcc_out.c. However it has not been tested extensively.

Can I call C code?

You can compile a .so with an extern mrbb_exec_entry_point, then you can load this module with load_compiled_mrb. For an example look at build/mrbcc_out.c.

Can I call compiled scripts from C code?

Yes, just load the .so file and call its mrbb_exec_entry_point. For an example look at standalone_runner/mrbcc_runner.c.