Skip to content

Commit 46b93b9

Browse files
wenyonghxwang98
authored andcommitted
Enable AoT and wamr-sdk, and change arguments of call wasm API (#157)
* 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 * Add BUILD_TARGET setting in makefile to replace cpu compiler flags in source code * Re-org shared lib header files, remove unused info; fix compile issues of vxworks * Add build target general * Remove unused files * Update license header * test push * Restore file * Sync up with internal/feature * Sync up with internal/feature * Rename build_wamr_app to build_wasm_app * Fix small issues of README * 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 * Sync up with internal/feature * Sync up with internal/feature: fix interpreter arm issue, fix read leb issue * Sync up with internal/feature * Fix bug of config.h and rename wasi config.h to ssp_config.h * Sync up with internal/feature * Import wamr aot * update document * update document * Update document, disable WASI in 32bit * update document * remove files * update document * Update document * update document * update document * update samples * Sync up with internal repo
1 parent 2a4528c commit 46b93b9

File tree

464 files changed

+24978
-7752
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

464 files changed

+24978
-7752
lines changed

core/iwasm/lib/native/libc/wasmtime-wasi-c/LICENSE renamed to ATTRIBUTIONS.md

Lines changed: 109 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
1+
WebAssembly Micro Runtime Attributions
2+
======================================
13

2-
Apache License
4+
WAMR project reused some components from other open source project:
5+
- **wasmtime**: for the wasi libc implementation
6+
- **cJson**: used in the host_tool for remotely managing wasm applications
7+
- **contiki-ng**: for the coap protocol implementation
8+
- **freebsd libm**: used in core/shared/platform/alios/bh_math.c
9+
- **littlevgl**: for the gui samples and wrapped the wasm graphic layer.
10+
11+
## Licenses
12+
13+
### wasmtime
14+
15+
```
16+
Apache License
317
Version 2.0, January 2004
418
http://www.apache.org/licenses/
519
@@ -217,4 +231,98 @@ conflicts with the conditions of the GPLv2, you may retroactively and
217231
prospectively choose to deem waived or otherwise exclude such Section(s) of
218232
the License, but only in their entirety and only with respect to the Combined
219233
Software.
234+
```
235+
236+
### cJson
237+
238+
```
239+
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
240+
241+
Permission is hereby granted, free of charge, to any person obtaining a copy
242+
of this software and associated documentation files (the "Software"), to deal
243+
in the Software without restriction, including without limitation the rights
244+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
245+
copies of the Software, and to permit persons to whom the Software is
246+
furnished to do so, subject to the following conditions:
247+
248+
The above copyright notice and this permission notice shall be included in
249+
all copies or substantial portions of the Software.
250+
251+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
252+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
253+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
254+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
255+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
256+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
257+
THE SOFTWARE.
258+
```
259+
260+
### contiki-ng
261+
262+
```
263+
264+
265+
Copyright (c) (Year), (Name of copyright holder) All rights reserved.
266+
267+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
268+
269+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
270+
271+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
272+
273+
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
274+
275+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
276+
277+
```
278+
279+
### freebsd libm
280+
281+
```
282+
Copyright 1992-2011 The FreeBSD Project. All rights reserved.
283+
284+
Redistribution and use in source and binary forms, with or without
285+
modification, are permitted provided that the following conditions are
286+
met:
287+
288+
1. Redistributions of source code must retain the above copyright
289+
notice, this list of conditions and the following disclaimer.
290+
291+
2. Redistributions in binary form must reproduce the above copyright
292+
notice, this list of conditions and the following disclaimer in the
293+
documentation and/or other materials provided with the distribution.
294+
THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY
295+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
296+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
297+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FREEBSD PROJECT OR
298+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
299+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
300+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
301+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
302+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
303+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
304+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
305+
306+
The views and conclusions contained in the software and documentation
307+
are those of the authors and should not be interpreted as representing
308+
official policies, either expressed or implied, of the FreeBSD
309+
Project.
310+
```
311+
312+
### littlevgl
313+
314+
```
315+
MIT licence
316+
Copyright (c) 2016 Gábor Kiss-Vámosi
317+
318+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
319+
320+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
321+
322+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
323+
```
324+
325+
326+
327+
220328

0 commit comments

Comments
 (0)