Commit Graph

245 Commits

Author SHA1 Message Date
wenyongh
10980a1dd7
Fix app manager parse applet name issue (#280) 2020-06-11 14:19:55 +08:00
wenyongh
7a287fd1a9
Implement wasm mini loader and refine footprint of loader and runtime (#276) 2020-06-08 11:19:09 +08:00
J-Heinemann
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
dpinthinker
5d86060d35
fix one typo in samples/basic.README.md (#274) 2020-06-03 15:17:22 +08:00
wenyongh
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
dpinthinker
e81f72d41f
MacOs: fix wamrc Error invaid llvm binary bin_type (#269)
* add darwin support for wamr-compiler compiling

* add darwin support for wamr-compiler

* Update CMakeLists.txt

* MacOs: fix wamrc Error invaid llvm binary bin_type

Co-authored-by: wenyongh <wenyong.huang@intel.com>
2020-05-31 12:40:12 +08:00
dpinthinker
c182eebc6b
add darwin compiling support for wamr-compiler (#265)
* add darwin support for wamr-compiler compiling

* add darwin support for wamr-compiler

* Update CMakeLists.txt

Co-authored-by: wenyongh <wenyong.huang@intel.com>
2020-05-28 13:27:52 +08:00
liurenju
0529815f34
change the alignment, which might potentially casue problem. (#258) 2020-05-21 16:05:02 +08:00
wenyongh
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
Wenbo Hu
1362b6d81f
Rename log_level enums (#252)
* rename loglevel enums

* Update bh_log.c
2020-05-12 13:06:37 +08:00
wenyongh
7abd1ca813
Change llvm void pointer to i8 pointer to avoid assert failed (#250) 2020-05-08 13:40:04 +08:00
wenyongh
44ccfd20ad
Fix issue of condition settings of app boundary check (#249) 2020-05-08 13:34:07 +08:00
wenyongh
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
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
Lei Zhang
ab4f0c5419
bugfix: check type for opcode block, loop and if (#238) (#239)
Otherwise a block opcode with invalid type signature could crash the
wasm loader.
2020-04-25 11:48:24 +08:00
Wang Xin
eab5e40853
sample gui update (#237) 2020-04-22 19:07:44 +08:00
wenyongh
f72e848114
Refine aot memory boundary check, add more llvm passes (#236)
Fix issue of some error info mismatch with spec cases
2020-04-22 18:43:50 +08:00
Wang Xin
f8442340fe
littlevgl sample update (#235) 2020-04-22 11:02:55 +08:00
Wang Xin
a661c49cd0
Merge branch 'master' into master 2020-04-13 11:05:54 +08:00
wenyongh
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
Weining
ffd975d2d6
Fix zephyr samples build issue caused by zephyr kernel API update (#232)
* Clean compiling warnings of zephyr samples

* Support xtensa AOT and fix build issue of alios

* Refine wgl native functions call

* Fix zephyr samples build issue caused by zephyr kernel API update
2020-04-13 07:46:16 +08:00
Wang Xin
42d982e431
update wgl readme 2020-04-12 22:53:10 +08:00
Wang Xin
bf8fbee92e
Refactor the wasm graphic layer (wgl) and the gui sample (#231) 2020-04-12 16:30:01 +08:00
Wang Xin
5b4054d010 add missing wasm app 2020-04-12 16:19:51 +08:00
Wang Xin
4c1558a785 build and test pass 2020-04-12 16:15:54 +08:00
Wang Xin
66d6a3986a refactor the lvgl wasm api layer 2020-04-12 14:19:23 +08:00
Wang Xin
d02d772def
Merge pull request #4 from bytecodealliance/master
sync up with upstream
2020-04-11 09:10:10 +08:00
Xu Jun
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
374e687938
Refine wgl native functions call (#225) 2020-04-02 17:58:46 +08:00
Shi Lei
30bab1bcc3
update basic sample to align with native registration API changes (#5) (#224)
Change-Id: Iec565f7dd09c14ee5c0f8732f86ff0d2cc094a4d
2020-04-02 14:36:02 +08:00
Weining
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
c1a0e6d877
Implement register/call native API with raw (unextracted) arguments (#222) 2020-04-01 12:52:08 +08:00
Xu Jun
d9890d2ccb
re-org ems mem allocator source codes, update prot_wamr.md (#217) 2020-03-30 11:06:39 +08:00
Xu Jun
31feaa0a88
change printf to puts in assemblyscript to match the signature (#215)
Co-authored-by: Xu Jun <jun1.xu@intel.com>
2020-03-27 16:51:15 +08:00
Xu Jun
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
wenyongh
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
Xu Jun
8ae161b779
fix vprintf in android platform, avoid importing abort in assemblyscript (#210) 2020-03-23 22:30:28 +08:00
Shi Lei
b21ea2f10b
Fixed a bug in simple project building when passing "-p profile" as argument to build.sh; add two more 3rd party folders into git.ignore to avoid merge failure (#209)
* add 3rd party folders which are downloaded during building into git ignore configuration file.

Change-Id: I5a5d913b701bcf6889d89706df65a22c366e24af

Co-authored-by: luc <luc@luc-ubuntu19.bj.intel.com>
2020-03-23 12:05:25 +08:00
Shi Lei
bef67ad7d4
add 3rd party folders which are downloaded during building into git ignore configuration file. (#208)
Co-authored-by: luc <luc@luc-ubuntu19.bj.intel.com>
2020-03-21 10:06:33 +08:00
Shi Lei
67495919b0
Add a basic sample to show how native runtime invokes wasm apps in WAMR and how wasm apps invoke native functions. (#207)
* Add printingAdd print time for wamrc, fix posix mmap bug time for wamrc, fixed a posix mmap bug.

Change-Id: Ib6517b8a69cf022a1a6a74efa1f98155aec143bc

* Add a basic sample to show how native runtime invokes wasm app in WAMR, and how wasm app invokes native functions.

Change-Id: I700ae413ad5e9ea04540d5187952305e1ee92d73
2020-03-20 16:39:13 +08:00
Shi Lei
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
yzha107
e07381c4a8
Fix a WASM_OP_SET_LOCAL type check issue (#205) 2020-03-20 13:28:18 +08:00
wenyongh
c6042c45a3
Sync with internal feature (#204) 2020-03-18 17:49:23 +08:00
Xu Jun
6523868a9a
fix aot load import global bug && enhance dead code processing (#203)
Co-authored-by: Xu Jun <jun1.xu@intel.com>
2020-03-17 17:51:51 +08:00
Weining
2a74e2dd29
Clean compiling warnings of zephyr samples (#202) 2020-03-17 11:20:00 +08:00
Wang Xin
63cbe4a967
Update README.md 2020-03-16 19:26:10 +08:00
Xu Jun
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
Rochet2
ef5ceffe71
Correct mistake in documentation (#198) 2020-03-13 00:42:15 +08:00
wenyongh
751a3b5865
Enhance interpreter performance (#196) 2020-03-12 08:59:02 +08:00
Wang Xin
add6697bda
Merge pull request #3 from bytecodealliance/master
sync to mainstream
2020-03-11 15:27:22 +08:00