Implement more wasm-c-apis and enable Envoy integration (#622)
Implement more wasm-c-api APIs to support Envoy integration: - sync up with latest c-api definition - change CMakeLists to export necessary headers and install the static library of iwasm - enable to export tables and memories - support memorytype and tabletype APIs - update wasm-c-api sampels - enable to export importtype APIs And refine bazel scripts for sample XNNPACK workload, add license headers for sample simple. Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
This commit is contained in:
7
samples/wasm-c-api/src/multi.wat
Normal file
7
samples/wasm-c-api/src/multi.wat
Normal file
@ -0,0 +1,7 @@
|
||||
(module
|
||||
(func $f (import "" "f") (param i32 i64 i64 i32) (result i32 i64 i64 i32))
|
||||
|
||||
(func $g (export "g") (param i32 i64 i64 i32) (result i32 i64 i64 i32)
|
||||
(call $f (local.get 0) (local.get 2) (local.get 1) (local.get 3))
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user