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
Xu Jun and GitHub
52f422dba0
fix pthread library issues: ( #522 )
...
1. pthread_join can't get return value from exited threads
2. pthread_cond_wait return success when timeout
2021-02-09 10:36:44 +08:00
Wang Ning and GitHub
da8c879953
Implement riscv support for interpreter ( #505 )
2021-01-25 18:41:48 +08:00
alvkeke and GitHub
6847e15f64
Fix failed in loading wasm byte-code if return NULL while size == 0 in os_malloc ( #500 )
2021-01-18 13:24:10 +08:00
alvkeke and GitHub
794028a968
1. fix error while building project with RT-Thread Studio. ( #497 )
...
2. add macro to enable/disable export native method of rt-thread.
2021-01-14 18:47:52 +08:00
alvkeke and GitHub
8ec03a5165
add porting codes of rt-thread ( #494 )
2021-01-14 11:26:35 +08:00
b75224ce03
Using posix thread implementation for NuttX ( #462 )
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
Co-authored-by: Huang Qi <huangqi3@xiaomi.com >
2020-12-07 21:15:41 +08:00
Wenyong Huang and GitHub
388530c738
Modify os_cond_reltimedwait to support long time wait ( #461 )
...
Modify the argument of os_cond_reltimedwait to uint64 type to support long time wait, and handle possible integer overflow.
2020-12-07 17:37:53 +08:00
Wenyong Huang and GitHub
2f530e67fc
Fix app manager install atomics app issue and optimize workload scripts ( #458 )
2020-12-04 15:35:45 +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
Karl Fessel and GitHub
7d8b79a7a7
Addapt to RIOT changes ( #452 )
...
RIOT removed kernel_types.h in favor of sched.h
2020-11-27 09:10:00 +08:00
Wenyong Huang and GitHub
0359805c82
Import FreeRTOS platform experiment codes for further development ( #451 )
2020-11-26 19:10:05 +08:00
Wenyong Huang and GitHub
74be7a0b7c
Add more checks to enhance security ( #446 )
...
add more checks to enhance security
clear "wasi proc exit" exception before return to caller in wasm/aot call functions
fix memory profiling issue
change movdqa to movdqu in simd invokeNative asm codes to fix issue of unaligned address access
move setjmp/longjmp from libc-builtin to libc-emcc
fix zephyr platform compilation issue in latest zephyr version
2020-11-24 14:00:09 +08:00
Wenyong Huang and GitHub
667282eea9
Implement stat and getentropy for sgx with ocall to run tensorflow ( #436 )
2020-10-30 12:36:00 +08:00
Wang Ning and GitHub
c9c882e43d
Fix compilation error for sgxsdk-2.11 ( #431 )
...
sgxsdk-2.11 enable pthread_rwlock APIs support, and causes compilation
error. We use macro SGX_THREAD_LOCK_INITIALIZER to control it.
2020-10-23 18:16:56 +08: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
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
Xiaokang Qin and GitHub
7c8ccc7c26
Fix the build warnings on Mac ( #388 )
...
Signed-off-by: Xiaokang Qin <xiaokang.qxk@antgroup.com >
2020-09-18 18:22:26 +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 Jun and GitHub
547298d4e7
Add macro to exclude sgx wasi/pthread ocalls if not needed ( #384 )
2020-09-15 15:49:09 +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
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
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 Jun and GitHub
1266ebb222
fix coding style for windows build patch ( #350 )
2020-08-13 16:40:19 +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
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
Karl Fessel and GitHub
37aae1bc49
make include headers follow strict protoype rule ( #331 )
2020-08-04 19:53:34 +08:00
wenyongh and GitHub
16a284a67c
Fix compile issue of zephyr ( #306 )
2020-07-09 16:07:41 +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
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 Jun and GitHub
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
002f3b7ac4
Missing SGX SDK Include fixed ( #275 )
...
* Missing SGX SDK Include fixed
* 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-08 11:00:22 +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
a0bb761beb
Update API comments, refine footprint of wasm loader ( #256 )
...
and fix issues of get native stack boundary
2020-05-15 17:44:36 +08:00
wenyongh and GitHub
e8e45aeecd
Refine aot stack overflow check and enhance wasm loader malformed checks ( #248 )
...
And separate global data from wasm memory instance
2020-05-08 12:38:59 +08:00
wenyongh and GitHub
d381b0fdec
Implement post-MVP features and native stack overflow check ( #243 )
...
Implement native thread stack overflow check
Implement post-MVP: Non-trapping float-to-int conversions
Implement post-MVP: Sign-extension operators
Enhance WASM loader checks
2020-04-30 17:52:11 +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
75009a2421
fix sgx compile and link error, preserve space for locals before set/tee opcode ( #214 )
...
Co-authored-by: Xu Jun <jun1.xu@intel.com >
2020-03-27 09:28:30 +08:00
Xu Jun and GitHub
8ae161b779
fix vprintf in android platform, avoid importing abort in assemblyscript ( #210 )
2020-03-23 22:30:28 +08:00
Shi Lei and GitHub
b6cae54b54
Add printingAdd print time for wamrc, fix posix mmap bug time for wamrc, fixed a posix mmap bug. ( #206 )
...
Change-Id: Ib6517b8a69cf022a1a6a74efa1f98155aec143bc
2020-03-20 16:06:40 +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
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
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