and the resulted wasm will call my host function with value a pointer to a memory with two u32: 0 (receiver), 1 (index of function in the table), and the table is as following.
And the generated wasm does not export this table, is there any way I can access this function $main.main$1
Additional details
I've got it working with wazero, they exposed a function to retrieve unexported function defined in tables.
Summary
I've compiled following code using tinygo
and the resulted wasm will call my host function with value a pointer to a memory with two u32: 0 (receiver), 1 (index of function in the table), and the table is as following.
And the generated wasm does not export this table, is there any way I can access this function
$main.main$1
Additional details
I've got it working with
wazero
, they exposed a function to retrieve unexported function defined in tables.I am wondering if it's archievable in
wasmer
.