simbit18
73301dd16d
apps/interpreters/bas/Makefile: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-08 13:50:23 -03:00
simbit18
2a255db413
apps/interpreters/ficl/Make.defs: Add missing Apache Foundation copyright header
...
Add missing Apache Foundation copyright header
2023-03-08 13:50:23 -03:00
simbit18
c1d859c249
apps/interpreters/bas/Make.defs: Add missing Apache Foundation copyright header
...
Add missing Apache Foundation copyright header
2023-03-08 13:50:23 -03:00
chao an
4f11f38c38
interpreters/wamr: add compile role of WebAssembly
...
Add compilation rules to support WebAssembly(WASM/WAMR):
1. Compile Toolchain
1> Download WASI sdk and export the WASI_SDK_PATH path:
$ wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-19/wasi-sdk-19.0-linux.tar.gz
$ tar xf wasi-sdk-19.0-linux.tar.gz
Put wasi-sdk-19.0 to your host WASI_SDK_PATH environment variable, like:
$ export WASI_SDK_PATH=`pwd`/wasi-sdk-19.0
2> Download Wamr "wamrc" AOT compiler and export to the PATH:
$ mkdir wamrc
$ wget https://github.com/bytecodealliance/wasm-micro-runtime/releases/download/WAMR-1.1.2/wamrc-1.1.2-x86_64-ubuntu-20.04.tar.gz
$ tar xf wamrc-1.1.2-x86_64-ubuntu-20.04.tar.gz
$ export PATH=$PATH:$PWD
2. Configuring and running
1> Configuring sim/wamr and compile:
nuttx$ ./tools/configure.sh sim/wamr
nuttx$ make
...
Wamrc Generate AoT: /home/archer/code/nuttx/n5/apps/wasm/hello.aot
Wamrc Generate AoT: /home/archer/code/nuttx/n5/apps/wasm/coremark.aot
LD: nuttx
2> Copy the generated wasm file(Interpreter/AoT)
nuttx$ cp ../apps/wasm/hello.aot .
nuttx$ cp ../apps/wasm/hello.wasm .
nuttx$ cp ../apps/wasm/coremark.wasm .
3> Run iwasm
nuttx$ ./nuttx
NuttShell (NSH) NuttX-10.4.0
nsh> iwasm /data/hello.wasm
Hello, World!!
nsh> iwasm /data/hello.aot
Hello, World!!
nsh> iwasm /data/coremark.wasm
2K performance run parameters for coremark.
CoreMark Size : 666
Total ticks : 12000
Total time (secs): 12.000000
Iterations/Sec : 5.000000
Iterations : 60
Compiler version : Clang 15.0.7
Compiler flags : Using NuttX compilation options
Memory location : Defined by the NuttX configuration
seedcrc : 0xe9f5
[0]crclist : 0xe714
[0]crcmatrix : 0x1fd7
[0]crcstate : 0x8e3a
[0]crcfinal : 0xa14c
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 5.000000 / Clang 15.0.7 Using NuttX compilation options / Defined by the NuttX configuration
Co-Authored-By: Huang Qi <huangqi3@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-03-06 13:23:44 +02:00
Gustavo Henrique Nihei
fe7b57aa11
wamr: Fix INTERPRETERS_WAMR_LIBC_WASI dependency on PSEUDOFS_SOFTLINKS
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-04 01:47:33 +08:00
Xiang Xiao
df2db2e410
interpreters/bas: Fix the nxstyle warning
...
except "Mixed case identifier found"
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-24 08:36:58 +02:00
Huang Qi
7f67ee8c88
bas_fs.c: Fix nxstyle: Multiple data definitions
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-02-23 17:21:19 +08:00
Huang Qi
db22e07d07
stdio: Remove CONFIG_EOL_IS_XXX
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-02-23 17:21:19 +08:00
lilei19
41f60bd669
change strcpy to strlcpy
...
Change-Id: I8b9429a3c225a82842fce136bdb14b8b135066d3
Signed-off-by: lilei19 <lilei19@xiaomi.com>
2023-02-22 23:09:55 +08:00
YAMAMOTO Takashi
6aef7fc0a3
interpreter/toywasm: Update toywasm version
...
Tested on esp32-devkitc.
2023-01-11 17:05:01 +02:00
Xuxingliang
6e67d8ab78
luamodules: fix compile warning in cjson
...
Signed-off-by: Xuxingliang <xuxingliang@xiaomi.com>
2022-12-22 13:39:35 +08:00
Neo Xu
6725d481b2
interpreters/lua: fix unpack on incremental build
...
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2022-12-21 17:48:29 +08:00
Xu Xingliang
167672c783
interpreters/lua: support lua module list register
...
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2022-12-21 17:48:13 +08:00
Neo Xu
311b4210b7
luamodules/cjson: add lua cjson module
...
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2022-12-21 17:47:14 +08:00
Neo Xu
6d7761f274
luamodules/lsyslog: add lua syslog module
...
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2022-12-21 17:46:59 +08:00
Neo Xu
7a2774b75a
luamodules/lfs: add luafilesystem module
...
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2022-12-21 17:46:44 +08:00
Xiang Xiao
d1e46c2d3e
compiler.h: Add _ between format|printf|syslog|scanf|strftime and like
...
align with other macro naming style
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-21 01:05:12 +02:00
YAMAMOTO Takashi
867897ad53
interpreters/toywasm/src/toywasm_config.c: add an empty section
...
I feel this should be fixed in nxstyle.
This is a separate commit to make a revert easier.
2022-12-20 10:45:07 +08:00
YAMAMOTO Takashi
7d6e12917f
interpreter/toywasm: Update toywasm version
...
The situation of toywasm_config.c is similar to toywasm_config.h.
It's cmake-generated in the upstream. The original template is covered
by a different license. I'm the author of the file and hereby re-license
this copy.
Tested on sim/macOS.
2022-12-20 10:45:07 +08:00
Xu Xingliang
636a155a21
luamodules/luv: fix comile warning -Werror=int-to-pointer-cast
...
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2022-12-12 18:06:53 +08:00
Xu Xingliang
80ed2b96d3
luamodules/luv: add libuv lua binding luv.
...
Initial work done by Michael Mogenson.
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2022-12-10 19:19:10 +08:00
Xu Xingliang
8175d89cd3
apps: add luamodules
...
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2022-12-10 19:19:10 +08:00
YAMAMOTO Takashi
5ae46ab6a7
interpreters/toywasm: update toywasm version
2022-12-01 19:39:22 +08:00
YAMAMOTO Takashi
bd20d45612
toywasm: add .gitignore
...
Following wasm3 and wamr.
2022-12-01 19:39:02 +08:00
Xiang Xiao
8fff07b435
Remove the unnecessary "return;" at the end of function
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-27 22:36:40 +01:00
Huang Qi
0357cb99b2
interpreters/wamr: New option to support spec test
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-11-17 13:28:40 +08:00
Huang Qi
31e7c5ec60
interpreters/wamr: New option to support ref types
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-11-17 13:28:40 +08:00
YAMAMOTO Takashi
7903911000
toywasm_config.h: Add a license notice to appease nxstyle
...
* This file is derived from [1], which is covered by [2].
* I'm the solo author of the file. I hereby re-license this version with
the license added by this commit.
[1] e43d33016a/lib/toywasm_config.h.in
[2] e43d33016a/LICENSE
2022-11-10 11:19:43 +08:00
YAMAMOTO Takashi
f1e8e933c5
interpreter/toywasm: update toywasm version
2022-11-10 11:19:43 +08:00
yinshengkai
ee4d8b738f
Makefile: replace INCDIR to INCDIR_PREFIX
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-11-10 02:38:58 +08:00
yinshengkai
2c3c2edcb7
Makefile: Remove INCDIROPT
...
This option, which resolves to -w when CONFIG_CYGWIN_WINTOOL is
configured, is now appended to INCDIR in tools/Config.mk.
See git commit # 5eae32577e5d5226e5d3027c169eeb369f83f77d in the main
2022-10-25 13:48:16 +08:00
YAMAMOTO Takashi
195ffe71e4
Add interpreters/toywasm
2022-10-20 01:06:00 +08:00
Xiang Xiao
4941182cc6
Make.defs: Change "ifeq ($(XXX),y)" to "ifneq ($(XXX),)
...
to support the tristate option correctly and unify the usage
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 14:59:08 +02:00
Xiang Xiao
9291d07a87
Fix the coding style issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-06 12:20:32 +02:00
yinshengkai
75673fed70
quickjs: add qjs tool configuration item
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-09-09 17:25:12 +02:00
YAMAMOTO Takashi
65b58724ca
interpreters/wamr/Kconfig: Add INTERPRETERS_WAMR_DEBUG_INTERP option
...
Tested with sim/Linux/amd64 and esp32 devkit-c.
2022-08-29 14:20:19 +08:00
Huang Qi
2e2630e838
Don't download tarballs if a local git repo found
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-08-28 17:20:47 +08:00
Peter Bee
a3ccf59204
quickjs/Makefile: pass jobserver status to submake
...
N/A
Use +make or $(MAKE) instead of make -C
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-08-15 11:12:33 +03:00
Huang Qi
29a49f366e
wamr: Add a new option to custom stack guard size
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-08-10 15:21:26 +08:00
Huang Qi
167c551e82
wamr: Add a new option to enable semaphore support
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-08-09 23:17:00 +08:00
Xiang Xiao
c252ec1481
Add printflike to all printf like functions
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-18 14:09:10 +03:00
YAMAMOTO Takashi
e5c07b9a62
interpreters/wamr: Remove WAMR_VERSION_STUB and always use actual tags
...
This allows to use a commit sha1 for CONFIG_INTERPRETERS_WAMR_VERSION.
Note: the existing configs with specific wamr version
need to be updated.
Tested with:
CONFIG_INTERPRETERS_WAMR_VERSION=main
CONFIG_INTERPRETERS_WAMR_VERSION=WAMR-04-15-2021
CONFIG_INTERPRETERS_WAMR_VERSION=3168ba8dcf20d9d8539d75c637420f5fd8682335
2022-06-02 00:35:08 +08:00
YAMAMOTO Takashi
ba08c77000
interpreters/wamr/Kconfig: enable text heap when necessary
2022-05-25 15:25:05 +08:00
YAMAMOTO Takashi
562db060b7
interpreters/wamr/Kconfig: Mention limitations about wasi
2022-05-24 22:38:36 +08:00
YAMAMOTO Takashi
90e164b708
interpreters/wamr/Kconfig: Add an option to enable wasi libc
2022-05-24 22:38:36 +08:00
YAMAMOTO Takashi
137b924b93
interpreters/wamr/Kconfig: Add INTERPRETERS_WAMR_PERF_PROFILING
2022-05-20 21:53:34 +08:00
Petro Karashchenko
7eda43768a
interpreters/ficl: add double include guard to nuttx.h
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-04-24 09:48:56 +08:00
Alin Jerpelea
d60fb1168d
nxstyle fixes
...
fixes for nxstyle errors reported by CI
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Alin Jerpelea
26e4e29c95
interpreters: ficl: Add Apache License
...
The initial contribution was missing a license.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
yinshengkai
cd1bc19bf9
quickjs: fix compile warning
...
optind is a global variable in getopt.h (a macro defined in stdlib.h in nuttx).
Here it is used as a variable, not a variable of getopt
2022-03-29 22:47:11 +08:00