Commit Graph

297 Commits

Author SHA1 Message Date
547298d4e7 Add macro to exclude sgx wasi/pthread ocalls if not needed (#384) 2020-09-15 15:49:09 +08:00
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
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
2135badc54 fix problem in wasm_module_malloc (#374) 2020-09-07 17:32:00 +08:00
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
c8df3f6eed Fix app heap migrate issue and aot compilation warning (#368) 2020-09-03 11:16:38 +08:00
e113298d7f use llvm release 10.x (#365) 2020-09-01 16:00:15 +08:00
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
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
0103f6429c Refactor error/exception strings to reduce binary size (#359) 2020-08-21 15:11:31 +08:00
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
6b5f376e79 fix issue in mini-loader (#353) 2020-08-14 19:58:19 +08:00
1266ebb222 fix coding style for windows build patch (#350) 2020-08-13 16:40:19 +08:00
874cc951c6 Optimize get_current_target in AOT loader for more archs (#347) 2020-08-13 15:13:45 +08:00
21efe12505 add win64 support (#348) 2020-08-13 14:41:20 +08:00
8c820730ba Add cmake variable to set the max app thread stack size (#346) 2020-08-11 14:47:24 +08:00
8ad9c1775f Add wamrc AoT compiler building support for Windows(MSVC) (#332) 2020-08-11 11:30:51 +08:00
3be29c3f46 optimize: get_current_target for AOT thumb loader (#342) 2020-08-11 09:40:18 +08:00
6aeefbebb2 implement atomics opcodes for interpreter (#344) 2020-08-10 19:43:58 +08:00
1b6ddb37d0 Implement libc-WASI for Linux SGX platform and update documents (#343) 2020-08-10 15:12:26 +08:00
8edf1e152f Update URL to lvgl repository. (#341)
The `lvgl` project appears to have changed their project name & repository URL.

This commit updates the URLs so the links don't go to a 404 error page.

The project name is now "Light and Versatile Embedded Graphics Library" but I haven't updated the name anywhere.
2020-08-07 22:16:02 +08:00
47450f47dd Fix typo: "wigdet" -> "widgets" (#340) 2020-08-07 17:25:23 +08:00
2022b2584d remove not needed ${SHARED_DIR}/include/*.h in runtime_lib.cmake (#338) 2020-08-06 17:20:34 +08:00
aa7b0ba6b6 Fix wamrc link error and arm assembly code issue (#335) 2020-08-05 09:07:30 +08:00
37aae1bc49 make include headers follow strict protoype rule (#331) 2020-08-04 19:53:34 +08:00
2db335c6d4 add spawn thread API and sample (#333) 2020-08-04 17:40:45 +08:00
ed8ddb2cea Disable some components in llvm build script to decrease binary size (#330) 2020-08-03 12:38:22 +08:00
29e45e1527 implement atomic opcode in AOT/JIT (#329) 2020-08-03 11:30:26 +08:00
cc05f8fb1c Use quicksort to sort native_symbols (#324) 2020-07-31 20:54:03 +08:00
93ca9d8c62 Disable memory shrink opt when memory.size opcode is found (#323) 2020-07-30 10:18:55 +08:00
88af12501d Implement ecall to handle commands from host to call enclave runtime APIs (#320) 2020-07-28 16:18:54 +08:00
056b824ac4 Fix fast interpreter i64 shift issue for non-x86 arch (#319) 2020-07-28 13:46:37 +08:00
08d01b65c5 Eable post-MVP feature wasm-c-api (#315) 2020-07-23 16:54:13 +08:00
32b2943369 enable pthread for AoT && update AOT current version to 2 (#311) 2020-07-16 20:35:04 +08:00
ca938f3634 Fix one typo in README.md (#309)
Signed-off-by: yijin.syj <yijin.syj@antgroup.com>

Co-authored-by: yijin.syj <yijin.syj@alibaba-inc.com>
2020-07-13 11:10:46 +08:00
49555f48b3 remove duplicated method resolve_main_func (#305) 2020-07-10 16:47:22 +08:00
0472ddc0d0 Change whence_t constant values to match pre-existing agreed-upon values. (#307) 2020-07-10 16:41:08 +08:00
1a85051415 Implement multi-value feature and import binarydump tool (#308) 2020-07-10 16:29:15 +08:00
16a284a67c Fix compile issue of zephyr (#306) 2020-07-09 16:07:41 +08:00
2fc7230009 Enhance the native stack overflow check (#302) 2020-07-07 09:56:46 +08:00
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
1f6b589c12 fix comments wrong position (#296) 2020-07-01 12:24:36 +08:00
ee3d448eb6 Fix aot issue in 32-bit platform (#297)
fix aot 32-bit boundary check issue
2020-07-01 12:22:13 +08:00
847dccaa34 Refine get/set global opcodes for interpreter (#294) 2020-06-29 14:17:27 +08:00
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
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
e3c04e6684 support pthread_key related APIs (#288) 2020-06-18 11:37:31 +08:00
acb68c64c2 update doc for multi-thread (#284) 2020-06-16 15:01:35 +08:00