summaryrefslogtreecommitdiffhomepage
path: root/src/variable.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-06-09 22:30:14 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 16:21:09 +0900
commit7deb41b0e88b3670476ed86bab541340f5551b52 (patch)
tree67f3688de3a1c4c31be6c9074d0dcd273556fc90 /src/variable.c
parentf1c06eef7c17a5bf2ea4a35021d563af5f3147a9 (diff)
downloadmruby-7deb41b0e88b3670476ed86bab541340f5551b52.tar.gz
mruby-7deb41b0e88b3670476ed86bab541340f5551b52.zip
Generate C source file to represent `mrb_irep` structures.
Type `mrbc -S -B<init> -o<outfile> <rbfiles...>` to generate the C source code that holds compiled `mrb_irep`. Appending the following code to the bottom of the generated code, `mruby` executes the compiled code: ```C int main() { mrb_state *mrb = mrb_open(); struct RProc *p = mrb_proc_new(mrb, &init_irep); mrb_vm_run(mrb, p, mrb_top_self(mrb), 0); mrb_close(mrb); return 0; } ``` Eventually static compile should use this representation, instead of `uint8_t` array that holds `mrb` data, so that we can skip interpreting `mrb` data.
Diffstat (limited to 'src/variable.c')
0 files changed, 0 insertions, 0 deletions