Commit Graph

220 Commits

Author SHA1 Message Date
wenyongh
fef64a2028 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
1c81ad6da5 Enhance wasm loader and update build app document (#147) 2019-11-27 10:52:12 +08:00
wenyongh
538422e58a 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
b4c2fcbe05 Merge pull request #51 from bytecodealliance/master
Update README.md
2019-11-26 08:29:18 +08:00
Wang Xin
ab157473c3 Update README.md 2019-11-25 23:36:39 +08:00
wenyongh
2b26e07b3b 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
7c5a84cf75 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
b869c32296 Fix small issues of README 2019-11-25 23:05:26 +08:00
wenyongh
e74c251e36 Rename build_wamr_app to build_wasm_app 2019-11-25 22:35:30 +08:00
wenyongh
cf3e5a972e Sync up with internal/feature 2019-11-25 22:28:37 +08:00
wenyongh
2aaa42569e Sync up with internal/feature 2019-11-25 22:26:51 +08:00
wenyongh
68dd935651 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
74f74b6490 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
3577fbcba1 Restore file 2019-11-21 12:06:02 +08:00
wenyongh
ecfbce126e test push 2019-11-21 11:48:46 +08:00
wenyongh
06b88d21d2 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
a7a7d04dc6 Restore some files and fix minor issues of SGX platform (#144) 2019-11-21 10:30:57 +08:00
wenyongh
71a2492ccc Merge pull request #47 from bytecodealliance/master
Recover two files
2019-11-20 21:33:34 +08:00
Weining
80045ddb55 Recover files deleted accidentally in last commit (#143) 2019-11-20 21:31:43 +08:00
wenyongh
2e3d54d5c3 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
27f246b5f3 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
1659eb637b Merge pull request #45 from bytecodealliance/master
Sync up with master repo
2019-11-12 18:25:02 -06:00
Riccardo Magliocchetti
29c7c743e9 README: fix a couple of typos 2019-11-12 14:59:28 -08:00
Till Schneidereit
465a58bf90 Merge pull request #139 from tschneidereit/master
Make it a Bytecode Alliance project
2019-11-12 17:48:56 +01:00
Till Schneidereit
45f0caebd0 Make it a Bytecode Alliance project 2019-11-12 17:48:27 +01:00
wenyongh
c6e9642b4b 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
be15c08cf3 Remove unused files and update license header of some files (#138) 2019-11-11 20:38:49 -06:00
wenyongh
2cf7da8ba1 Update license header 2019-11-12 10:24:33 +08:00
wenyongh
ffc8918efc Remove unused files 2019-11-12 10:22:04 +08:00
wenyongh
35b7d75dfb 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
b0b0789dca Relicense to Apache-2.0 with the LLVM-exception (#137)
With agreement from contributors.
2019-11-12 07:45:21 +08:00
wenyongh
a53a251261 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
49127efa99 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
3095afb15d Add build target general 2019-11-05 08:54:19 +08:00
wenyongh
05c6a206a8 Re-org shared lib header files, remove unused info; fix compile issues of vxworks 2019-11-04 22:17:37 +08:00
wenyongh
30c6bd13e7 Merge pull request #41 from intel/master
Add BUILD_TARGET setting in makefile (#135)
2019-11-01 00:39:42 -05:00
wenyongh
28993946ad Add BUILD_TARGET setting in makefile (#135) 2019-11-01 00:38:45 -05:00
wenyongh
61a7103e7a Add BUILD_TARGET setting in makefile to replace cpu compiler flags in source code 2019-11-01 13:31:00 +08:00
wenyongh
08b56a0427 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
2a8b1ef454 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
6ed582dcca Merge pull request #39 from intel/master
Add toolchain for WAMR (#127)
2019-09-27 10:05:15 +08:00
Xu Jun
bbae4426a0 Add toolchain for WAMR (#127)
* add toolchain for wamr

* add copyright
2019-09-26 19:35:37 +08:00
wenyongh
baafddd9f1 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
f8f61dc898 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
830c7ab4bd Add a switch to build simple sample without gui support 2019-09-25 16:40:29 +08:00
wenyongh
7267dcf8fa 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
wenyongh
2fca3aa3f5 Re-implement invokeNative function of arm/mips/general version (#125)
Re-implement them due to the function prototype was changed.
Fix typo of sample/gui/README.
2019-09-22 21:52:39 -05:00
wenyongh
e866e9c2b9 Fix issues of invokeNative function of arm/mips/general version 2019-09-23 10:48:56 +08:00
wenyongh
289d0ccc1a Merge pull request #36 from intel/master
Refine interpreter call native process and memory boundary check (#124)
2019-09-19 04:05:53 -05:00
wenyongh
42dc2d65a1 Refine interpreter call native process and memory boundary check (#124) 2019-09-19 04:05:15 -05:00