Xu Jun and GitHub
09eb858a02
add realloc wrapper, fix pthread_join overwrite issue ( #605 )
2021-04-09 15:27:12 +08:00
Wenyong Huang and GitHub
9327f20ae2
Upgrade llvm version from 10.x to 11.x for wamrc and iwasm JIT ( #564 )
...
Upgrade it as the latest version of wasi-sdk and emsdk are based on llvm-11, align to it to use the same compiler version. And this also fixes compilation error when building wamrc with llvm-10 in Windows platform.
Signed-off-by: Wenyong Huang <wenyong.huang@intel.com >
2021-03-10 16:08:50 +08:00
Wenyong Huang and GitHub
a1568825e8
Enable to use BH_VPRINTF macro to redirect stdout output ( #560 )
...
Enable to use BH_VPRINTF macro for platform Linux/Windows/Darwin/VxWorks to redirect the stdout output from platform os_printf/os_vprintf, or the wasi output from wasm app to the vprintf like callback function specified by BH_VPRINTF macro of cmake WAMR_BH_VPRINTF variable.
Signed-off-by: Wenyong Huang <wenyong.huang@intel.com >
2021-03-06 22:29:58 +08:00
Wenyong Huang and GitHub
a4239f1ffd
Enable SIMD by default for wamrc and iwasm ( #559 )
...
Enable SIMD by default for wamrc on x86-64 target, for iwasm on platform Linux and Darwin. And update build wamr document, fix app manager compile warning.
Signed-off-by: Wenyong Huang <wenyong.huang@intel.com >
2021-03-06 21:30:14 +08:00
fc50404115
add uvwasi implementation to support wasi on windows [experimental] ( #534 )
...
add uvwasi implementation to support wasi on windows [experimental] and update windows.yml
Co-authored-by: Wenyong Huang <wenyong.huang@intel.com >
2021-02-22 14:17:46 +08:00
Wang Ning and GitHub
da8c879953
Implement riscv support for interpreter ( #505 )
2021-01-25 18:41:48 +08:00
Wenyong Huang and GitHub
240ca2ed46
Implement performance profiler and call stack dump, and update toolchain document ( #501 )
...
And remove redundant FAST_INTERP macros in wasm_interp_fast.c, and fix wamrc --help wrong line order issue.
Signed-off-by: Wenyong Huang <wenyong.huang@intel.com >
2021-01-18 13:23:10 +08:00
alvkeke and GitHub
8ec03a5165
add porting codes of rt-thread ( #494 )
2021-01-14 11:26:35 +08:00
Wenyong Huang and GitHub
724858c731
Update wasm app build scripts for wasi-sdk-12 and refine interpreter ( #481 )
...
Update wasm app build scripts for wasi-sdk-12.0: add --export=__main_argc_argv, remove --no-threads
Lookup function with name "__main_argc_argv" as main function besides "main"
Change module_malloc to runtime_malloc in wasi native lib
Refine classic interpreter op_block and op_br_table
Refine faster interpreter op_br_table
Signed-off-by: Wenyong Huang <wenyong.huang@intel.com >
2020-12-28 10:46:31 +08:00
Jia Zhang and GitHub
a2641e174a
Enhance the readability of WAMR SGX docs ( #442 )
...
The global doc/linux_sgx.md needs to explicitly describe the methods to
build a debug enclave and hardware running mode. Because using debug key
to signing enclave image rather than production key is still not trivial
in reality.
For the adaption of Inclavare Containers part, add a prolog and give
more details in order to enhance the readability.
Signed-off-by: Jia Zhang <zhang.jia@linux.alibaba.com >
2020-11-13 13:11:34 +08:00
8f4a1963fc
Update SGX documents ( #439 )
...
This commit mainly simplifies the description about building a
debug and hw mode enclave.
Signed-off-by: Jia Zhang <zhang.jia@linux.alibaba.com >
Co-authored-by: root <root@rs1g04412.et2sqa >
2020-11-12 20:59:03 +08:00
Wenyong Huang and GitHub
a3074df21b
Import SIMD feature and add some workload samples ( #438 )
2020-11-05 18:15:15 +08:00
lum1n0us and GitHub
4787b150b8
Enable multi-module support for wasm-c-api ( #426 )
...
it is allowed that all imported functions and globals can be
linked by multi-module feature automatically or by wasm-c-api manually
2020-10-16 17:43:57 +08:00
Xu Jun and GitHub
b929ee3f71
Update windows build step, add CI support for windows ( #420 )
2020-10-13 12:13:18 +08:00
Wang Xin
06b045a972
Update readme
2020-09-30 08:30:58 +08:00
Xiaokang Qin and GitHub
c83a5713f9
Add the fast-interp tail call support ( #409 )
...
And also fix one bug in loader for tail-call
Signed-off-by: Xiaokang Qin <xiaokang.qxk@antgroup.com >
2020-09-29 10:35:10 +08:00
Xu Jun and GitHub
c13746c22c
move memory_data out from MemoryInstance, add call stack ( #408 )
2020-09-28 18:38:15 +08:00
a7e7711f63
Add the support for custom name section ( #398 )
...
Add the function name field for internal function struct
Signed-off-by: Zhongmin Wu <vwzm@live.com >
Signed-off-by: Xiaokang Qin <xiaokang.qxk@antgroup.com >
Co-authored-by: Zhongmin Wu <vwzm@live.com >
2020-09-23 16:12:09 +08:00
Wenyong Huang and GitHub
e501a6963b
Fix some coding style issues, fix doc typo and refine some codes ( #392 )
2020-09-20 08:20:45 +08:00
Xu Jun and GitHub
0226dbbb3d
introduce WAMR memory profiling tool (experimental) ( #390 )
2020-09-18 18:04:56 +08:00
c004b01be3
Introduce support for NuttX RTOS ( #377 )
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
Co-authored-by: Huang Qi <huangqi3@xiaomi.com >
2020-09-15 20:56:45 +08:00
Xu Jun and GitHub
547298d4e7
Add macro to exclude sgx wasi/pthread ocalls if not needed ( #384 )
2020-09-15 15:49:09 +08:00
Xiaokang Qin and GitHub
5418e09712
Add two apis for wasm function call ( #375 )
...
Add below two apis:
bool wasm_runtime_call_wasm_a(WASMExecEnv *exec_env,
WASMFunctionInstanceCommon *function,
uint32 num_results, wasm_val_t results[],
uint32 num_args, wasm_val_t args[])
bool wasm_runtime_call_wasm_v(WASMExecEnv *exec_env,
WASMFunctionInstanceCommon *function,
uint32 num_results, wasm_val_t results[],
uint32 num_args, ...)
Signed-off-by: Xiaokang Qin <xiaokang.qxk@antgroup.com >
2020-09-08 13:03:35 +08:00
Wenyong Huang and GitHub
034606b0a9
Change wasm app offset type from int32 to uint32 ( #361 )
...
And fix some sign/unsigned conversion compilation warnings.
2020-08-26 18:33:29 +08:00
Wenyong Huang and GitHub
8c820730ba
Add cmake variable to set the max app thread stack size ( #346 )
2020-08-11 14:47:24 +08:00
Xu Jun and GitHub
6aeefbebb2
implement atomics opcodes for interpreter ( #344 )
2020-08-10 19:43:58 +08:00
Wenyong Huang and GitHub
1b6ddb37d0
Implement libc-WASI for Linux SGX platform and update documents ( #343 )
2020-08-10 15:12:26 +08:00
follower and GitHub
47450f47dd
Fix typo: "wigdet" -> "widgets" ( #340 )
2020-08-07 17:25:23 +08:00
Xu Jun and GitHub
2db335c6d4
add spawn thread API and sample ( #333 )
2020-08-04 17:40:45 +08:00
lum1n0us and GitHub
08d01b65c5
Eable post-MVP feature wasm-c-api ( #315 )
2020-07-23 16:54:13 +08:00
Xu Jun and GitHub
32b2943369
enable pthread for AoT && update AOT current version to 2 ( #311 )
2020-07-16 20:35:04 +08:00
wenyongh and GitHub
ee315e4049
Implement memory access bound check with hardware trap for 64-bit platforms ( #293 )
...
Also implement native stack overflow check with hardware trap for 64-bit platforms
Refine classic interpreter and fast interpreter to improve performance
Update document
2020-06-28 15:41:25 +08:00
Xu Jun and GitHub
e3c04e6684
support pthread_key related APIs ( #288 )
2020-06-18 11:37:31 +08:00
Xu Jun and GitHub
d98ab63e5c
Enable shared memory && add pthread support ( #282 )
2020-06-15 19:04:04 +08:00
wenyongh and GitHub
7a287fd1a9
Implement wasm mini loader and refine footprint of loader and runtime ( #276 )
2020-06-08 11:19:09 +08:00
wenyongh and GitHub
752826a667
Implement multi-module feature and bulk-memory feature ( #271 )
...
Refine wasm loader and aot loader
Fix potential issue of os_mmap/os_munmap
Update document
2020-06-02 14:53:06 +08:00
wenyongh and GitHub
b40e79c160
Make heap and linear memory contiguous to refine compilation time and footprint ( #233 )
...
Use FastISel for JIT mode
Use united aot version in aot file and aot runtime
Disable check signature failed warning for wamrc
Fix fast interpreter x86_32 float issue
Remove unused empty lvgl folder
2020-04-13 10:49:40 +08:00
Xu Jun and GitHub
5e196253f6
Fix function type not set issue of aot_call_indirect ( #229 )
...
Add registration of libc-wasi to 'wasi_snapshot_preview1' to support cargo-wasi
change zephyr build method from cmake to west
fix problem when preserve space for local vars
fix wasi authority problem
2020-04-07 11:04:46 +08:00
Weining and GitHub
c6fc12b7b6
Add xtensa AOT support and fix build issue of alios ( #223 )
...
* Clean compiling warnings of zephyr samples
* Support xtensa AOT and fix build issue of alios
2020-04-01 18:38:42 +08:00
Xu Jun and GitHub
d9890d2ccb
re-org ems mem allocator source codes, update prot_wamr.md ( #217 )
2020-03-30 11:06:39 +08:00
wenyongh and GitHub
01e85144f4
Enable aarch64 support, add component test framework and test suite ( #211 )
...
and refine aot call indirect op
2020-03-24 19:04:29 +08:00
f1a0e75ab7
re-org platform APIs, simplify porting process ( #201 )
...
Co-authored-by: Xu Jun <jun1.xu@intel.com >
2020-03-16 16:43:57 +08:00
Rochet2 and GitHub
ef5ceffe71
Correct mistake in documentation ( #198 )
2020-03-13 00:42:15 +08:00
Weining and GitHub
aa42335a4e
minor changes ( #195 )
2020-03-11 13:49:52 +08:00
wenyongh and GitHub
0fdd49ea31
Re-org memory allocation interfaces, add --stack-size and --heap-size option ( #193 )
2020-03-10 19:54:44 +08:00
057c849fc0
re-org bh_definition.c && introduce wamr fast interpreter ( #189 )
...
Co-authored-by: Xu Jun
2020-03-07 22:20:38 +08:00
wenyongh and GitHub
cfcaca3d35
Refine build script of zephyr product-mini, enable aot soft-float support ( #188 )
2020-03-05 21:46:24 +08:00
Wang Xin and GitHub
881b46cfc8
Update export_native_api.md
2020-03-05 12:48:29 +08:00
Wang Xin and GitHub
a325c6d3fe
Update export_native_api.md
2020-03-05 10:48:26 +08:00
wenyongh and GitHub
0d3f304191
Implement native function pointer check, addr conversion and register, update documents ( #185 )
...
Modified WASM runtime API:
- wasm_runtime_module_malloc()
- wasm_runtime_lookup_function()
Introduced runtime API
- wasm_runtime_register_natives()
2020-03-04 20:12:38 +08:00