Commit Graph

224 Commits

Author SHA1 Message Date
wenyongh
d65d6ffe2a
Merge pull request #53 from bytecodealliance/master
Enhance wasm loader and interpreter, enhance code security and update…
2019-12-13 15:31:10 +08:00
wenyongh
c8b0f9954a
Enhance wasm loader and interpreter, enhance code security and update document (#149) 2019-12-13 15:30:30 +08:00
wenyongh
990eb5bba1 Sync up with internal/feature: fix interpreter arm issue, fix read leb issue 2019-12-13 15:21:46 +08:00
wenyongh
d8257555b1 Sync up with internal/feature 2019-12-12 10:53:06 +08:00
wenyongh
a4be73a001
Merge pull request #52 from bytecodealliance/master
Enhance wasm loader and update build app document (#147)
2019-11-27 10:53:05 +08:00
wenyongh
2171d88397
Enhance wasm loader and update build app document (#147) 2019-11-27 10:52:12 +08:00
wenyongh
4e0ad7d935 Enhance malformed wasm file checking
Fix issue of print hex int and implement utf8 string check
Fix wasi file read/write right issue
Fix minor issue of build wasm app doc
2019-11-27 10:46:42 +08:00
wenyongh
3e5e324cd3
Merge pull request #51 from bytecodealliance/master
Update README.md
2019-11-26 08:29:18 +08:00
Wang Xin
98c7030dd5
Update README.md 2019-11-25 23:36:39 +08:00
wenyongh
4ccdc8be83
Merge pull request #50 from bytecodealliance/master
Update README, change wasi primitive lib position and add some except…
2019-11-25 23:17:40 +08:00
wenyongh
8a1214cfe6
Update README, change wasi primitive lib position and add some exception checks (#146)
Add exception throw when some initial checks fail in executing main or specific function
2019-11-25 23:16:40 +08:00
wenyongh
eb6f668ff8 Fix small issues of README 2019-11-25 23:05:26 +08:00
wenyongh
678cee7f95 Rename build_wamr_app to build_wasm_app 2019-11-25 22:35:30 +08:00
wenyongh
b91b4623aa Sync up with internal/feature 2019-11-25 22:28:37 +08:00
wenyongh
b470a931f2 Sync up with internal/feature 2019-11-25 22:26:51 +08:00
wenyongh
99ac4a3980
Merge pull request #49 from bytecodealliance/master
Fix sgx porting issues: incorrect compile flags, porting func impl, d…
2019-11-22 18:59:50 +08:00
qdaoming-intel
064400fdc2 Fix sgx porting issues: incorrect compile flags, porting func impl, document, etc. (#145)
* Fix sgx porting issues: incorrect compilation flags, porting function impl, document, etc.

* Update bh_platform.c

Add check for function bh_vprintf_sgx: check whether print_function is not NULL.
2019-11-22 15:33:37 +08:00
wenyongh
9feeb5c16a Restore file 2019-11-21 12:06:02 +08:00
wenyongh
b9cd64a21f test push 2019-11-21 11:48:46 +08:00
wenyongh
5ff6fe9726
Merge pull request #48 from bytecodealliance/master
Restore some files and fix minor issues of SGX platform (#144)
2019-11-21 11:23:30 +08:00
Weining
6385845bb5 Restore some files and fix minor issues of SGX platform (#144) 2019-11-21 10:30:57 +08:00
wenyongh
776628f9cd
Merge pull request #47 from bytecodealliance/master
Recover two files
2019-11-20 21:33:34 +08:00
Weining
bc1833b058 Recover files deleted accidentally in last commit (#143) 2019-11-20 21:31:43 +08:00
wenyongh
36eed7e975
Merge pull request #46 from bytecodealliance/master
Enable WASI feature, enhance security and add SGX sample (#142)
2019-11-20 21:17:18 +08:00
Weining
afe4eb7a2b Enable WASI feature, enhance security and add SGX sample (#142)
Change emcc to clang
Refine interpreter to improve perforamnce
2019-11-20 21:16:36 +08:00
wenyongh
001e4599d8
Merge pull request #45 from bytecodealliance/master
Sync up with master repo
2019-11-12 18:25:02 -06:00
Riccardo Magliocchetti
cb0c0263b4 README: fix a couple of typos 2019-11-12 14:59:28 -08:00
Till Schneidereit
b635fa78ce
Merge pull request #139 from tschneidereit/master
Make it a Bytecode Alliance project
2019-11-12 17:48:56 +01:00
Till Schneidereit
d3361f2189 Make it a Bytecode Alliance project 2019-11-12 17:48:27 +01:00
wenyongh
e01759de82
Merge pull request #44 from intel/master
Remove unused files and update license header of some files (#138)
2019-11-11 20:42:47 -06:00
wenyongh
d36a769789
Remove unused files and update license header of some files (#138) 2019-11-11 20:38:49 -06:00
wenyongh
d261c65c67 Update license header 2019-11-12 10:24:33 +08:00
wenyongh
8a7fcfac84 Remove unused files 2019-11-12 10:22:04 +08:00
wenyongh
011073cb77
Merge pull request #43 from intel/master
Relicense to Apache-2.0 with the LLVM-exception (#137)
2019-11-11 18:16:23 -06:00
Josh Triplett
d08e1fc8f0 Relicense to Apache-2.0 with the LLVM-exception (#137)
With agreement from contributors.
2019-11-12 07:45:21 +08:00
wenyongh
c6d2feab71
Merge pull request #42 from intel/master
Re-org shared lib header files, remove unused info (#136)
2019-11-04 18:57:47 -06:00
wenyongh
e892069f6c
Re-org shared lib header files, remove unused info (#136)
And fix compile issues of vxworks
2019-11-04 18:56:27 -06:00
wenyongh
3245d4fec8 Add build target general 2019-11-05 08:54:19 +08:00
wenyongh
d83e7c43c6 Re-org shared lib header files, remove unused info; fix compile issues of vxworks 2019-11-04 22:17:37 +08:00
wenyongh
6a96d372bd
Merge pull request #41 from intel/master
Add BUILD_TARGET setting in makefile (#135)
2019-11-01 00:39:42 -05:00
wenyongh
7375acdc6e
Add BUILD_TARGET setting in makefile (#135) 2019-11-01 00:38:45 -05:00
wenyongh
0e35f729bb Add BUILD_TARGET setting in makefile to replace cpu compiler flags in source code 2019-11-01 13:31:00 +08:00
wenyongh
3060118414
Merge pull request #40 from intel/master
Remove the binding between current thread and module instance and bug…
2019-10-11 15:26:04 +08:00
Weining
b8c81511c8 Remove the binding between current thread and module instance and bugs fix (#131)
Remove wasm_export_api.h that may confuse
Implement wasm_runtime_validate_app_str_addr()
Fix bugs of loader and pass more spec cases

Signed-off-by: Weining Lu <weining.x.lu@intel.com>
2019-10-11 15:25:23 +08:00
wenyongh
d80657ff24
Merge pull request #39 from intel/master
Add toolchain for WAMR (#127)
2019-09-27 10:05:15 +08:00
Xu Jun
526c52eebf Add toolchain for WAMR (#127)
* add toolchain for wamr

* add copyright
2019-09-26 19:35:37 +08:00
wenyongh
2d07996b37
Merge pull request #38 from intel/master
Add a switch to build simple sample without gui support (#126)
2019-09-25 03:45:03 -05:00
wenyongh
f43c5d7670
Add a switch to build simple sample without gui support (#126)
* Implement memory profiler, optimize memory usage, modify code indent

* Implement memory.grow and limit heap space base offset to 1G; modify iwasm build type to Release and 64 bit by default

* Add a new extension library: connection

* Fix bug of reading magic number and version in big endian platform

* Re-org platform APIs: move most platform APIs from iwasm to shared-lib

* Enhance wasm loader to fix some security issues

* Fix issue about illegal load of EXC_RETURN into PC on stm32 board

* Updates that let a restricted version of the interpreter run in SGX

* Enable native/app address validation and conversion for wasm app

* Remove wasm_application_exectue_* APIs from wasm_export.h which makes confused

* Refine binary size and fix several minor issues

Optimize interpreter LOAD/STORE opcodes to decrease the binary size
Fix issues when using iwasm library: _bh_log undefined, bh_memory.h not found
Remove unused _stdin/_stdout/_stderr global variables resolve in libc wrapper
Add macros of global heap size, stack size, heap size for Zephyr main.c
Clear compile warning of wasm_application.c

* Add more strict security checks for libc wrapper API's

* Use one libc wrapper copy for sgx and other platforms; remove bh_printf macro for other platform header files

* Enhance security of libc strcpy/sprintf wrapper function

* Fix issue of call native for x86_64/arm/mips, add module inst parameter for native wrapper functions

* Remove get_module_inst() and fix issue of call native

* Refine wgl lib: remove module_inst parameter from widget functions; move function index check to runtime instantiate

* Refine interpreter call native process, refine memory boudary check

* Fix issues of invokeNative function of arm/mips/general version

* Add a switch to build simple sample without gui support
2019-09-25 03:42:56 -05:00
wenyongh
87625a3b97 Add a switch to build simple sample without gui support 2019-09-25 16:40:29 +08:00
wenyongh
7977aaeadf
Merge pull request #37 from intel/master
Re-implement invokeNative function of arm/mips/general version (#125)
2019-09-22 21:53:11 -05:00