From a929e68d37e3d8ef4a6fbeda39b9d2c6c8170206 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 26 Jun 2024 21:51:58 +0300 Subject: initial working ejit config --- src/execute.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/execute.c') diff --git a/src/execute.c b/src/execute.c index cfa64fb..5f99dcd 100644 --- a/src/execute.c +++ b/src/execute.c @@ -6,5 +6,12 @@ void execute() { struct fn *f = find_fn(0); - ejit_run_func(f->f, 0, NULL); + struct vec globals = vec_create(sizeof(int64_t)); + vec_reserve(&globals, num_globals()); + struct ejit_arg args[1] = { + EJIT_ARG_POINTER(globals.buf) + }; + + ejit_run_func(f->f, 1, args); + vec_destroy(&globals); } -- cgit v1.2.3