wasm-micro-runtime
wasm-micro-runtime copied to clipboard
WebAssembly Micro Runtime (WAMR)
### Abstract Currently WebAssembly doesn't support runtime dynamic linking (dlopen, dlsym, dlclose). #444 ``` C typedef int (*TestFunc)(int); int main() { int ret; void *handle; TestFunc test_func; handle = dlopen("app.wasm",...
I am looking to embed the micro runtime into a host derived from another program's samples, but am having trouble following the documentation. The sample is very minimal, and its...
we use pthread_cond_timedwait as below, using wasi-sdk build is okay #include "tizen_api.h" #include #include pthread_mutex_t lock; pthread_cond_t cond; void *thread_routine(void *arg) { printf("Enter thread\n"); int ret = 0; int count...
In the native world, calling wasm_runtime_call_wasm to call a wasm function, sometimes, I will get a exception:unreachable. How can I get the call stack in wasm, and how about the...
Hi all! I'm trying to import wamr runtime using `wasm-c-api`. But I found that there are some missing api as follows. * wasm_ref_t functions * bool wasm_module_validate(wasm_store_t*, const wasm_byte_vec_t* binary)...
When I calling a wasm function(AssemblyScript) by wasm_runtime_call_wasm(exec_env, func, 2, argvIn), I got a error. I catch the exception by wasm_runtime_get_exception(module_inst), and the exception info is "Exception: failed to call...
add platform support for Azure RTOS Threadx
I get strange failures when calling `wasm_runtime_module_malloc` with different module instances from multiple threads, does it mean that this function is not thread safe? I use `Alloc_With_Allocator` option in `RuntimeInitArgs`....
Hi all! I found the following bug(maybe?) in wasm-c-api implementation ([lastest commit](https://github.com/bytecodealliance/wasm-micro-runtime/commit/edb184f709b83fdae46835be792ca9a31dc5ae41)). Each type structure (wasm_func_t, wasm_global_t, wasm_memory_t and wasm_table_t) has `name##_idx_rt` member like below, https://github.com/bytecodealliance/wasm-micro-runtime/blob/62fb3c9a89491d21aec00e123b421bd81aa7beaa/core/iwasm/common/wasm_c_api_internal.h#L181-L195 but this member is...
Added use_wrapper to structure NativeSymbol and corresponding methods to enable linking to pure C functions, without prepending wasm_exec_env_t as first argument example: ``` int square(int a) { return a *...