Commit Graph
202 Commits
Author SHA1 Message Date
Xu JunandGitHub 0226dbbb3d introduce WAMR memory profiling tool (experimental) (#390) 2020-09-18 18:04:56 +08:00
04a7cc322f core/shared: Add guard to avoid redefine macro (#386)
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>

Co-authored-by: Huang Qi <huangqi3@xiaomi.com>
2020-09-16 17:53:03 +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 JunandGitHub 547298d4e7 Add macro to exclude sgx wasi/pthread ocalls if not needed (#384) 2020-09-15 15:49:09 +08:00
Xu JunandGitHub 2499e1ec4b Fix issue and compilation warnings of new function call APIs (#383) 2020-09-14 15:30:42 +08:00
728890103b Add the Windows COFF format support for AOT (#382)
Add the Windows COFF format support to wamr-compiler and iwasm can
load and excute it on Windows(X64) platform.

Signed-off-by: Wu Zhongmin <vwzm@live.com>
Signed-off-by: Xiaokang Qin <xiaokang.qxk@antgroup.com>

Co-authored-by: Wu Zhongmin <vwzm@live.com>
2020-09-11 18:32:58 +08:00
264e189690 Add Windows support for C-API and Runtime API libraries and examples. (#379)
* Add Windows support for C-API and Runtime API libraries and examples.

Signed-off-by: Wu Zhongmin <vwzm@live.com>
Signed-off-by: Xiaokang Qin <xiaokang.qxk@antgroup.com>

* Address the review comments

Signed-off-by: Xiaokang Qin <xiaokang.qxk@antgroup.com>

* Rewrite the the bh_getopt to make it avaliable for more kinds of options

Signed-off-by: Wu Zhongmin <vwzm@live.com>
Signed-off-by: Xiaokang Qin <xiaokang.qxk@antgroup.com>

* Add the license header

Signed-off-by: Xiaokang Qin <xiaokang.qxk@antgroup.com>

Co-authored-by: Zhongmin Wu <vwzm@live.com>
2020-09-11 17:36:04 +08:00
Xiaokang QinandGitHub 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
Xu JunandGitHub 2135badc54 fix problem in wasm_module_malloc (#374) 2020-09-07 17:32:00 +08:00
Xu JunandGitHub 2e0cef3ef1 fix exec_env not checked issue, export __heap_base and __data_end in sample to decrease memory usage (#371) 2020-09-05 14:48:08 +08:00
Wenyong HuangandGitHub c8df3f6eed Fix app heap migrate issue and aot compilation warning (#368) 2020-09-03 11:16:38 +08:00
Wenyong HuangandGitHub 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
qinxk-interandGitHub 049760b849 Fix the build issues on mac for some samples (#358)
Fix the build issues on mac for basic/multi-module/multi-thread/
simple/spawn-thread/wasm-c-api under samples.
And all these samples could be run as expected.

Signed-off-by: Xiaokang Qin <xiaokang.qxk@antgroup.com>
2020-08-21 15:14:04 +08:00
Wenyong HuangandGitHub 0103f6429c Refactor error/exception strings to reduce binary size (#359) 2020-08-21 15:11:31 +08:00
Wenyong HuangandGitHub 89d2937cde Refactor app heap and memory boundary check, and fix os_printf compilation error (#356)
Insert app heap before __heap_base, or before new page
Fix os_printf compilation error in some platforms
2020-08-20 12:43:12 +08:00
Xu JunandGitHub 6b5f376e79 fix issue in mini-loader (#353) 2020-08-14 19:58:19 +08:00
Xu JunandGitHub 1266ebb222 fix coding style for windows build patch (#350) 2020-08-13 16:40:19 +08:00
Karl FesselandGitHub 874cc951c6 Optimize get_current_target in AOT loader for more archs (#347) 2020-08-13 15:13:45 +08:00
Xu JunandGitHub 21efe12505 add win64 support (#348) 2020-08-13 14:41:20 +08:00
Wenyong HuangandGitHub 8c820730ba Add cmake variable to set the max app thread stack size (#346) 2020-08-11 14:47:24 +08:00
sophy228andGitHub 8ad9c1775f Add wamrc AoT compiler building support for Windows(MSVC) (#332) 2020-08-11 11:30:51 +08:00
Karl FesselandGitHub 3be29c3f46 optimize: get_current_target for AOT thumb loader (#342) 2020-08-11 09:40:18 +08:00
Xu JunandGitHub 6aeefbebb2 implement atomics opcodes for interpreter (#344) 2020-08-10 19:43:58 +08:00
Wenyong HuangandGitHub 1b6ddb37d0 Implement libc-WASI for Linux SGX platform and update documents (#343) 2020-08-10 15:12:26 +08:00
Wenyong HuangandGitHub aa7b0ba6b6 Fix wamrc link error and arm assembly code issue (#335) 2020-08-05 09:07:30 +08:00
Karl FesselandGitHub 37aae1bc49 make include headers follow strict protoype rule (#331) 2020-08-04 19:53:34 +08:00
Xu JunandGitHub 2db335c6d4 add spawn thread API and sample (#333) 2020-08-04 17:40:45 +08:00
Xu JunandGitHub 29e45e1527 implement atomic opcode in AOT/JIT (#329) 2020-08-03 11:30:26 +08:00
dpinthinkerandGitHub cc05f8fb1c Use quicksort to sort native_symbols (#324) 2020-07-31 20:54:03 +08:00
Wenyong HuangandGitHub 93ca9d8c62 Disable memory shrink opt when memory.size opcode is found (#323) 2020-07-30 10:18:55 +08:00
Wenyong HuangandGitHub 056b824ac4 Fix fast interpreter i64 shift issue for non-x86 arch (#319) 2020-07-28 13:46:37 +08:00
lum1n0usandGitHub 08d01b65c5 Eable post-MVP feature wasm-c-api (#315) 2020-07-23 16:54:13 +08:00
Xu JunandGitHub 32b2943369 enable pthread for AoT && update AOT current version to 2 (#311) 2020-07-16 20:35:04 +08:00
dpinthinkerandGitHub 49555f48b3 remove duplicated method resolve_main_func (#305) 2020-07-10 16:47:22 +08:00
Jämes MénétreyandGitHub 0472ddc0d0 Change whence_t constant values to match pre-existing agreed-upon values. (#307) 2020-07-10 16:41:08 +08:00
WeiningandGitHub 1a85051415 Implement multi-value feature and import binarydump tool (#308) 2020-07-10 16:29:15 +08:00
wenyonghandGitHub 16a284a67c Fix compile issue of zephyr (#306) 2020-07-09 16:07:41 +08:00
wenyonghandGitHub 2fc7230009 Enhance the native stack overflow check (#302) 2020-07-07 09:56:46 +08:00
dpinthinkerandGitHub 9b8fc6ae95 fix one typo in module_wasm_app.c's log (#299)
* fix comments wrong position

* fix one typo in module_wasm_app.c's log
2020-07-01 16:57:22 +08:00
dpinthinkerandGitHub 1f6b589c12 fix comments wrong position (#296) 2020-07-01 12:24:36 +08:00
wenyonghandGitHub ee3d448eb6 Fix aot issue in 32-bit platform (#297)
fix aot 32-bit boundary check issue
2020-07-01 12:22:13 +08:00
wenyonghandGitHub 847dccaa34 Refine get/set global opcodes for interpreter (#294) 2020-06-29 14:17:27 +08:00
wenyonghandGitHub 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
Josh Triplett 548926ab1a Rename "master" branch to "main"
Update all links accordingly. Also update links to other repositories
whose branches have renamed.

The references to repositories whose branches have not renamed should be
referencing specific commits anyway, so reference those specific commits
by hash.
2020-06-27 02:39:47 -07:00
Xu JunandGitHub e3c04e6684 support pthread_key related APIs (#288) 2020-06-18 11:37:31 +08:00
Xu JunandGitHub acb68c64c2 update doc for multi-thread (#284) 2020-06-16 15:01:35 +08:00
Xu JunandGitHub d98ab63e5c Enable shared memory && add pthread support (#282) 2020-06-15 19:04:04 +08:00
f4d4d69736 wasm_export.h Function Description & SGX SDK Include path (#279)
* Missing SGX SDK Include fixed

* Update shared_platform.cmake

* CMakeFile remove stdlib from untrusted part

* Added two times in function description zero as possible return value

* Update shared_platform.cmake

Co-authored-by: Joshua Heinemann <heineman@ibr.cs.tu-bs.de>
Co-authored-by: wenyongh <wenyong.huang@intel.com>
2020-06-12 18:47:06 +08:00
wenyonghandGitHub 10980a1dd7 Fix app manager parse applet name issue (#280) 2020-06-11 14:19:55 +08:00
wenyonghandGitHub 7a287fd1a9 Implement wasm mini loader and refine footprint of loader and runtime (#276) 2020-06-08 11:19:09 +08:00