17f62ad472
Apply clang-format for core/shared and product-mini files ( #785 )
...
Apply clang-format for core/shared and product-mini files
2021-10-14 09:12:07 +08:00
02d27e13ee
Fix some compilation warnings and enable Windows JIT ( #586 )
2021-03-22 19:28:51 +08:00
a5188f5574
Add checks to avoid wasm_runtime_malloc memory with size 0 ( #507 )
...
In some platforms, allocating memory with size 0 may return NULL but not an empty memory block, which causes runtime load, instantiate or execute wasm/aot file failed. We add checks to try to avoid allocating memory in runtime if the size is 0. And in wasm_runtime_malloc/free, output warning if allocate memory with size 0 and free memory with NULL ptr.
Also fix some coding style issues, fix handle riscv32 ilp32d issue, and fix several wasm-c-api issues.
Signed-off-by: Wenyong Huang <wenyong.huang@intel.com >
2021-01-28 16:16:02 +08:00
8ec03a5165
add porting codes of rt-thread ( #494 )
2021-01-14 11:26:35 +08:00
0226dbbb3d
introduce WAMR memory profiling tool (experimental) ( #390 )
2020-09-18 18:04:56 +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
1266ebb222
fix coding style for windows build patch ( #350 )
2020-08-13 16:40:19 +08:00
8ad9c1775f
Add wamrc AoT compiler building support for Windows(MSVC) ( #332 )
2020-08-11 11:30:51 +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