sophy228 and GitHub
c8b0a1cee1
Fix some issues for Arm platform. ( #457 )
...
Motivation:
we found some issues during enable the WAMR on arm devices, such as relocation issues, stack alignment issues.
Proposed change:
We optimized the relocation process for arm platform, for relocation jump table, the SP should be aligned to 16 bytes. And we also make "getentropy" worked for other non-supported platform.
2020-12-02 10:22:55 +08:00
Wenyong Huang and GitHub
282831eba5
Fix some compilation warnings and add esp-idf platform for experiment ( #454 )
...
And fix some code indent issues.
2020-11-30 16:03:51 +08:00
Wenyong Huang and GitHub
0359805c82
Import FreeRTOS platform experiment codes for further development ( #451 )
2020-11-26 19:10:05 +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
YaoLe and GitHub
ed94b7dcc4
Implement Inclavare Containers PAL interface in WAMR Linux-SGX ( #429 )
...
* Implement the PAL interface for rune
Work in progress
Signed-off-by: Le Yao <le.yao@intel.com >
* Support PAL for one runtime with multi-instances
Load runtime into enclave and run multi-instances
Signed-off-by: Le Yao <le.yao@intel.com >
2020-10-29 03:34:34 +00:00
Wang Ning and GitHub
ad4aa9a85f
Update build script to enable running tensorflow workload in linux-sgx ( #435 )
2020-10-29 03:33:49 +00:00
Karl Fessel and GitHub
f1fe5d7872
add RIOT-OS support to WAMR ( #425 )
...
* add RIOT platform
see riot-os.org
* add simple RIOT example
2020-10-16 11:21:53 +08:00
YAMAMOTO Takashi and GitHub
2dd3875fd9
nuttx: Fix build for sim on macOS ( #423 )
2020-10-13 14:14:55 +08:00
Wenyong Huang and GitHub
dc536538ad
Fix sgx enclave module not destroyed issue when loading module failed ( #410 )
2020-09-29 10:34:06 +08:00
78c525d21c
platforms/nuttx: Add support for custom name sections & configurable heap pool ( #407 )
...
Co-authored-by: Huang Qi <huangqi3@xiaomi.com >
2020-09-28 18:38:58 +08:00
c59bfe24fb
platforms/nuttx: Use symbol from NuttX to configure build ( #402 )
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
Co-authored-by: Huang Qi <huangqi3@xiaomi.com >
2020-09-24 14:36:21 +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
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
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
Xu Jun and GitHub
e113298d7f
use llvm release 10.x ( #365 )
2020-09-01 16:00:15 +08:00
sophy228 and GitHub
8ad9c1775f
Add wamrc AoT compiler building support for Windows(MSVC) ( #332 )
2020-08-11 11:30:51 +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
Wenyong Huang and GitHub
ed8ddb2cea
Disable some components in llvm build script to decrease binary size ( #330 )
2020-08-03 12:38:22 +08:00
Xu Jun and GitHub
29e45e1527
implement atomic opcode in AOT/JIT ( #329 )
2020-08-03 11:30:26 +08:00
Wenyong Huang and GitHub
88af12501d
Implement ecall to handle commands from host to call enclave runtime APIs ( #320 )
2020-07-28 16:18:54 +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
Weining and GitHub
1a85051415
Implement multi-value feature and import binarydump tool ( #308 )
2020-07-10 16:29:15 +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
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
liurenju and GitHub
0529815f34
change the alignment, which might potentially casue problem. ( #258 )
2020-05-21 16:05:02 +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
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
wenyongh and GitHub
c6042c45a3
Sync with internal feature ( #204 )
2020-03-18 17:49:23 +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
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
wenyongh and GitHub
180ee4c78a
Add realloc func argument for memory allocator ( #191 )
2020-03-08 21:18:18 +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
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
wenyongh and GitHub
9a961c4843
Enable ARM and THUMB AOT support, enable Android platform support ( #182 )
...
* Sync with internal/feature: enable arm aot and android platform
2020-02-27 16:38:44 +08:00
7962c47085
Diasble AOT in SGX build by default, as it requires SGX SDKv2.8 or la… ( #180 )
...
* Diasble AOT in SGX build by default, as it requires SGX SDKv2.8 or later.
* Update bh_platform.c
Co-authored-by: daomingq <daomingq@users.noreply.github.com >
Co-authored-by: wenyongh <wenyong.huang@intel.com >
2020-02-25 16:00:37 +08:00
renjipanicker and GitHub
af4a96e2a0
Fixed darwin build ( #178 )
...
* RSIZE_MAX is already defined by system on darwin
* MADV_HUGEPAGE is not available on darwin
* Fixed linker error 'Undefined symbol _get_ext_lib_export_apis' on darwin when building iwasm dylib
2020-02-24 17:16:18 +08:00
36b1044363
Fixed C compiler detection error in CMakeList.txt ( #176 )
...
* Fixed C compiler detection error in CMakeList.txt
* Update CMakeLists.txt
Co-authored-by: wenyongh <wenyong.huang@intel.com >
2020-02-24 11:29:23 +08:00
qdaoming-intel and GitHub
a4ac16a1c8
Add SGX AOT support with SGX SDKv2.8 unpublic sgx_rsrv_mem_mngr.h ( #169 )
2020-02-19 15:11:12 +08:00
wenyongh and GitHub
e62bbeb9e8
Refine wasm loader and interpreter, enhance wamrc to support SGX ( #167 )
...
Former-commit-id: 76f4a121d3c2a67114414fc60e80eba4bf49aa8e [formerly b1ab47945a40e6b249c9aa205d61281301585ea6]
Former-commit-id: 8e5c6e895eae22051a79a8d337a87cd2f431b6bc
2020-02-18 15:15:24 +08:00
Junxian Xiao and GitHub
20cf199ce4
Fix issues when use linux-sgx as cmake subdirectory ( #166 )
...
1. Remove the copy of libvmlib.a and libextlib.a to ../enclave_example,
which doesn't exist in other project.
2. Use default SGX_SDK path to avoid "source $SGX_SDK/environment".
Signed-off-by: Junxian.Xiao <junxian.xjx@antfin.com >
2020-02-17 11:36:17 +08:00
wenyongh and GitHub
256ecdfdf9
Refine interpreter to improve performance, refine memory usage ( #161 )
2020-02-10 12:36:45 +08:00