Huang Qi and GitHub
8a2e151de1
CI: Bump NuttX version to 12.6 ( #3684 )
2024-08-05 09:06:31 +08:00
Huang Qi and GitHub
c3dd5598f6
Fix a compilation warning ( #3682 )
...
Fix:
```
wamr/core/iwasm/compilation/aot_llvm.c: In function ‘insert_native_symbol’:
wamr/core/iwasm/compilation/aot_llvm.c:3290:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
3290 | if (ret < 0 || ret + 1 > sizeof(sym->symbol)) {
| ^
```
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
2024-08-03 21:05:18 +08:00
Huang Qi and GitHub
0d8ffebd39
spec-test-script/runtest.py: Move "--size-level=1" to common place for RISCV64 ( #3644 )
2024-07-19 11:45:55 +08:00
Huang Qi and GitHub
0aeef69d23
Update binary size info in README.md ( #3030 )
...
And also show size in CI with NuttX.
The size info is from bloaty, which is a tool to measure binary size.
Example usage and output (WAMR stuff only):
```
➜ sim bloaty -s file nuttx/nuttx -d compileunits -n 10000 --source-filter wamr
FILE SIZE VM SIZE
-------------- --------------
13.1% 108Ki 19.4% 14.6Ki wamr/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c
12.2% 100Ki 0.1% 50 wamr/core/iwasm/common/wasm_c_api.c
10.6% 87.1Ki 8.7% 6.54Ki wamr/core/iwasm/common/wasm_runtime_common.c
9.2% 76.1Ki 12.6% 9.45Ki wamr/core/iwasm/aot/aot_loader.c
8.9% 73.6Ki 12.5% 9.38Ki wamr/core/iwasm/libraries/libc-wasi/libc_wasi_wrapper.c
7.1% 58.7Ki 9.0% 6.79Ki wamr/core/iwasm/aot/aot_runtime.c
3.6% 29.3Ki 5.6% 4.21Ki wamr/core/iwasm/libraries/libc-builtin/libc_builtin_wrapper.c
3.2% 26.2Ki 3.6% 2.73Ki wamr/core/shared/platform/common/posix/posix_socket.c
2.9% 24.0Ki 2.7% 2.01Ki wamr/core/iwasm/common/wasm_memory.c
2.8% 23.2Ki 2.3% 1.74Ki wamr/core/iwasm/common/wasm_application.c
2.6% 21.5Ki 3.3% 2.46Ki wamr/core/shared/platform/common/posix/posix_file.c
2.5% 20.4Ki 1.9% 1.45Ki wamr/core/iwasm/common/wasm_native.c
2.4% 20.0Ki 2.0% 1.51Ki wamr/core/iwasm/aot/arch/aot_reloc_riscv.c
2.1% 17.3Ki 1.6% 1.20Ki wamr/core/iwasm/common/wasm_shared_memory.c
2.0% 16.4Ki 2.4% 1.81Ki wamr/core/shared/mem-alloc/ems/ems_alloc.c
1.9% 15.9Ki 2.4% 1.81Ki wamr/product-mini/platforms/nuttx/main.c
1.7% 13.8Ki 1.4% 1.05Ki wamr/core/iwasm/aot/aot_intrinsic.c
1.5% 12.2Ki 0.4% 312 wamr/core/iwasm/common/wasm_exec_env.c
1.4% 11.8Ki 0.8% 618 wamr/core/shared/platform/common/posix/posix_thread.c
1.0% 8.20Ki 1.2% 952 wamr/core/shared/utils/bh_hashmap.c
0.9% 7.52Ki 0.8% 636 wamr/core/shared/utils/bh_vector.c
0.9% 7.46Ki 0.8% 618 wamr/core/shared/mem-alloc/ems/ems_kfc.c
0.8% 6.89Ki 1.0% 744 wamr/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/blocking_op.c
0.8% 6.65Ki 0.5% 356 wamr/core/shared/platform/nuttx/nuttx_platform.c
0.5% 4.25Ki 0.4% 316 wamr/core/shared/utils/bh_common.c
0.4% 3.70Ki 0.3% 248 wamr/core/shared/utils/bh_log.c
0.4% 3.52Ki 0.4% 330 wamr/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/random.c
0.4% 3.07Ki 0.1% 40 wamr/core/shared/mem-alloc/mem_alloc.c
0.3% 2.52Ki 0.3% 196 wamr/core/shared/utils/uncommon/bh_read_file.c
0.3% 2.36Ki 0.3% 216 wamr/core/shared/platform/common/posix/posix_clock.c
0.3% 2.27Ki 0.1% 106 wamr/core/shared/utils/bh_list.c
0.2% 1.91Ki 0.6% 430 wamr/core/shared/platform/common/libc-util/libc_errno.c
0.2% 1.78Ki 0.1% 94 wamr/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/str.c
0.2% 1.73Ki 0.0% 6 wamr/core/iwasm/common/wasm_blocking_op.c
0.2% 1.42Ki 0.1% 74 wamr/core/shared/utils/bh_bitmap.c
0.1% 1.02Ki 0.1% 82 wamr/core/shared/platform/common/posix/posix_time.c
0.1% 751 0.2% 138 wamr/core/iwasm/common/arch/invokeNative_riscv.S
100.0% 823Ki 100.0% 75.1Ki TOTAL
```
2024-04-23 17:15:53 +08:00
Huang Qi and GitHub
94db327f06
Add comments to suppress warning from wamrc ( #3175 )
2024-02-22 18:57:00 +08:00
Huang Qi and GitHub
1429d8cc03
Fix inconsistent coding convention ( #3171 )
2024-02-22 10:40:50 +08:00
Huang Qi and GitHub
1a676f212b
Zero the memory mapped from os_mmap in NuttX ( #3132 )
...
Zero the memory which is required by os_mmap.
This fixes the nuttx spec test CI failure:
https://github.com/bytecodealliance/wasm-micro-runtime/actions/runs/7777804669
2024-02-05 15:45:22 +08:00
Huang Qi and GitHub
b98f150f82
CI: Update version of checkout to suppress warnings ( #3093 )
2024-01-27 07:55:49 +08:00
Huang Qi and GitHub
9fb5fcc709
Add comments to suppress warning from clang-tidy ( #3088 )
...
Suppress style warnings for macro definition, name of these macros is
inconsistent with others (upper case).
2024-01-26 17:02:24 +08:00
Huang Qi and GitHub
ad46290770
Update outdated reference link in multi_module.md ( #3092 )
2024-01-26 16:55:27 +08:00
Huang Qi and GitHub
6daaf6d27a
Fix inconsistent code style in aot_loader.c ( #3082 )
2024-01-25 17:19:14 +08:00
Huang Qi and GitHub
54ef0e4de7
Bump NuttX version to 12.4.x in CI ( #3047 )
2024-01-19 11:24:48 +08:00
Huang Qi and GitHub
64e82ca102
Disable WASM_ENABLE_SHARED_MEMORY_MMAP by default ( #3042 )
...
Fix compilation warning.
2024-01-17 19:29:31 +08:00
Huang Qi and GitHub
dcaaed0160
nuttx: Add option to enable quick aot entry ( #3040 )
2024-01-17 16:26:53 +08:00
Huang Qi and GitHub
915adc433d
Rename rwlock_init to avoid conflict ( #3016 )
...
This symbol is too simple to cause conflict with others, such as the RW
spinlock in Linux kernel and NuttX, so rename it to avoid the conflict.
2024-01-16 08:53:18 +08:00
Huang Qi and GitHub
269b695f85
Refactor reloc symbols for riscv ( #2894 )
2023-12-11 14:44:41 +08:00
Huang Qi and GitHub
c6848e45a1
Using docker image for nuttx spectest ( #2887 )
...
And disable running the nuttx spectest CI every time PR merged since
it will consume too much runners to slow down the other checks.
2023-12-11 09:48:59 +08:00
Huang Qi and GitHub
2fb3dc3ec0
Add arm64 to nuttx compilation test ( #2886 )
2023-12-08 18:21:47 +08:00
Huang Qi and GitHub
a58e596995
compilation_on_nuttx.yml: Use docker image to simplify env setup ( #2878 )
2023-12-07 18:03:07 +08:00
Huang Qi and GitHub
39d0fabda3
Using stable branch for NuttX relative CI ( #2872 )
2023-12-06 16:09:17 +08:00
Huang Qi and GitHub
49cd2e011b
Fix float argument handling for riscv32 ilp32d ( #2871 )
2023-12-06 11:30:07 +08:00
Huang Qi and GitHub
47993ec72d
Don't launch extra cores in QEMU to save resource ( #2867 )
2023-12-06 09:46:50 +08:00
Huang Qi and GitHub
7308b1eb00
Update FPU configuration in spec_test_on_nuttx.yml ( #2856 )
2023-12-04 18:57:18 +08:00
Huang Qi and GitHub
e350e65b12
Don't add "+d" to riscv cpu features if already given ( #2855 )
2023-12-04 17:00:21 +08:00
Huang Qi and GitHub
453a29a9d4
Enable spectest on riscv64 ( #2843 )
...
Fix relocation issues on riscv and update test scripts and CI to enable
test spec cases on riscv QEMU.
2023-12-04 14:22:47 +08:00
Huang Qi and GitHub
d7608690c0
Run spec test for classic/fast-interp in NuttX CI ( #2817 )
2023-11-27 15:24:02 +08:00
Huang Qi and GitHub
cb44e56b4e
Fix Zifencei extension issue in RISC-V ( #2807 )
...
Refer to:
https://github.com/bytecodealliance/wasm-micro-runtime/pull/2805
2023-11-23 10:23:33 +08:00
Huang Qi and GitHub
0b29904f26
Fix configurable bounds checks typo ( #2809 )
2023-11-21 17:32:45 +08:00
Huang Qi and GitHub
9ad42290d8
Fix formatting in wasm_dump_perf_profiling ( #2799 )
...
Changes %d to %PRIu32.
2023-11-20 18:06:35 +08:00
Huang Qi and GitHub
aebe30426f
Fix formatting in aot_dump_perf_profiling ( #2796 )
...
Changes %d to %PRIu32.
2023-11-20 12:11:02 +08:00
Huang Qi and GitHub
73cd1969f4
Add support for custom sections in nuttx ( #2795 )
2023-11-20 11:37:51 +08:00
Huang Qi and GitHub
e8c8f7fca6
Fix return type in wasm_loader_get_custom_section ( #2794 )
...
Should return NULL instead of false.
2023-11-20 10:36:15 +08:00
Huang Qi and GitHub
748e745088
Disable FPU in NuttX spec test ( #2781 )
...
Fix spec test failure on NuttX with #2780 , see:
https://github.com/bytecodealliance/wasm-micro-runtime/actions/runs/6910450452
2023-11-18 09:09:30 +08:00
Huang Qi and GitHub
be05af79fb
Refine atomic operation flags in bh_atomic.h ( #2780 )
2023-11-18 08:59:58 +08:00
Huang Qi and GitHub
b92906464e
Fix printing ref.extern addresses in wasm_application.c ( #2774 )
2023-11-16 15:10:58 +08:00
Huang Qi and GitHub
24aa1cb408
Extend os_mmap to support map file from fd ( #2763 )
...
Add an extra argument `os_file_handle file` for `os_mmap` to support
mapping file from a file fd, and remove `os_get_invalid_handle` from
`posix_file.c` and `win_file.c`, instead, add it in the `platform_internal.h`
files to remove the dependency on libc-wasi.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
2023-11-16 08:28:54 +08:00
Huang Qi and GitHub
56bfae774c
Update RISC-V compilers in Nuttx compilation CI and spec test CI ( #2756 )
...
Update RISC-V compilers in Nuttx compilation CI and spec test CI
to test workflows.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
2023-11-14 09:21:58 +08:00
Huang Qi and GitHub
e4353b4e1f
Add eabihf ABI support and set vendor-sys of bare-metal targets ( #2745 )
...
Set the vendor-sys of bare-metal targets to "-unknown-none-",
and currently only add "thumbxxx" to the bare-metal target list.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
2023-11-13 18:01:15 +08:00
Huang Qi and GitHub
051dfbbb9e
Fix a typo in is_win_platform ( #2490 )
2023-08-22 11:50:11 +08:00
Huang Qi and GitHub
4b1f027690
Re-organize intrinsics in aot_reloc_riscv.c to fix some FPU issues ( #2414 )
2023-08-01 17:28:57 +08:00
Huang Qi and GitHub
10b18d85cd
Fix ExpandMemoryOpPass doesn't work properly ( #2399 )
...
The old method may not work for some cases. This PR iterates over all instructions
in the function, looking for memcpy, memmove and memset instructions, putting
them into a set, and finally expands them into a loop one by one.
And move this LLVM Pass after building the pipe line of pass builder to ensure that
the memcpy/memmove/memset instrinsics are generated before applying the pass.
2023-07-29 10:28:09 +08:00
Huang Qi and GitHub
aafea39b8c
Add "--enable-builtin-intrinsics=<flags>" option to wamrc ( #2341 )
...
Refer to doc/xip.md for details.
2023-07-06 18:20:35 +08:00
Huang Qi and GitHub
6a310cc88a
Add "--native-lib=<lib>" option to wamrc ( #2342 )
2023-07-06 12:25:28 +08:00
Huang Qi and GitHub
ae4069df41
Migrate ExpandMemoryOpPass to llvm new pass manager ( #2334 )
...
Fix #2328
2023-07-04 17:17:15 +08:00
Huang Qi and GitHub
18092f86cc
Make memory access boundary check behavior configurable ( #2289 )
...
Allow to use `cmake -DWAMR_CONFIGURABLE_BOUNDS_CHECKS=1` to
build iwasm, and then run `iwasm --disable-bounds-checks` to disable the
memory access boundary checks.
And add two APIs:
`wasm_runtime_set_bounds_checks` and `wasm_runtime_is_bounds_checks_enabled`
2023-07-04 16:21:30 +08:00
Huang Qi and GitHub
44f4b4f062
Add "--enable-llvm-passes=<passes>" option to wamrc ( #2335 )
...
Add "--enable-llvm-passes=<passes>" option to wamrc for customizing LLVM passes
2023-07-04 12:20:52 +08:00
Huang Qi and GitHub
df98d9fb4a
Add "--xip" option for wamrc ( #2336 )
...
Add shorthand "--xip" option for wamrc, which is equal to
"--enalbe-indirect-mode --disable-llvm-intrinsics"
2023-07-04 12:03:40 +08:00
Huang Qi and GitHub
7ec77598dd
Fix format warning by PRIu32 in [wasm|aot] dump call stack ( #2251 )
2023-06-11 11:30:25 +08:00
Huang Qi and GitHub
d692878484
Nuttx CI: Ignore the expired certificate for riscv gcc toolchain ( #2222 )
2023-05-17 15:15:23 +08:00
Huang Qi and GitHub
19ab3b8812
spectest/nuttx: Increase stack size of iwasm task ( #2082 )
2023-03-29 17:24:44 +08:00
Huang Qi and GitHub
ea50bd2aca
Support dump call stack on exception and dump call stack on nuttx ( #2042 )
2023-03-22 18:11:53 +08:00
Huang Qi and GitHub
2a5a2243e3
ci: Setup wasi-sdk for compilation on nuttx to fix break ( #2012 )
2023-03-07 12:06:38 +08:00
Huang Qi and GitHub
8ed6687696
Fix CI compilation error on nuttx ( #1940 )
2023-02-07 12:42:59 +08:00
Huang Qi and GitHub
2c8375ee67
wamr-test-suites: Save .wasm/.aot file to the report dir if test failed ( #1937 )
2023-02-06 11:04:28 +08:00
Huang Qi and GitHub
58316635d4
ci: Enable libc-wasi compilation test on NuttX ( #1918 )
2023-01-28 12:39:14 +08:00
Huang Qi and GitHub
cb7ac8fee3
nuttx: Mock socket APIs if NET is disabled ( #1896 )
2023-01-18 09:16:13 +08:00
Huang Qi and GitHub
a1786428e6
nuttx: Remove fdopendir ( #1895 )
...
The newer version of nuttx has implemented fdopendir, and the compiler
reports multiple definitions of it.
2023-01-17 11:16:01 +08:00
Huang Qi and GitHub
f818f4c43f
Simplify fcmp intrinsic logic for AOT/XIP ( #1881 )
2023-01-12 12:05:53 +08:00
Huang Qi and GitHub
d5aa354d41
Return result directly if float cmp is called in AOT XIP ( #1851 )
2022-12-30 16:45:39 +08:00
Huang Qi and GitHub
d309091706
Register missing symbols for f32 to 64 bit integer conversion ( #1850 )
2022-12-30 15:21:25 +08:00
Huang Qi and GitHub
d1fe589d43
Fix fmin/fmax in AOT XIP intrinsics ( #1848 )
2022-12-29 18:48:55 +08:00
Huang Qi and GitHub
41eb938a95
Fix equal check in AOT XIP float cmp intrinsic ( #1847 )
2022-12-29 18:11:05 +08:00
Huang Qi and GitHub
6c7ca90229
Use float version library routine for XIP aot_intrinsic_xxx APIs ( #1846 )
2022-12-29 16:49:27 +08:00
Huang Qi and GitHub
b5f8a2bd08
Add missing soft float intrinsics for risc-v AOT ( #1845 )
2022-12-29 16:00:33 +08:00
Huang Qi and GitHub
5d006ad263
Reuse build llvm libraries for spec test on nuttx ( #1838 )
...
Fix daily CI break on NuttX.
2022-12-26 14:22:15 +08:00
Huang Qi and Wenyong Huang
dbec3f0202
Enable XIP in CI daily test ( #1793 )
2022-12-20 14:37:07 +08:00
Huang Qi and Wenyong Huang
c613866bac
Implement i32.div_s ( #1792 )
2022-12-20 14:37:07 +08:00
Huang Qi and Wenyong Huang
bfd57558a7
Implement i32.rem_s and i32.rem_u intrinsic ( #1789 )
2022-12-20 14:37:07 +08:00
Huang Qi and GitHub
d827315122
Enable XIP in CI daily test ( #1793 )
2022-12-13 11:32:35 +08:00
Huang Qi and GitHub
ef4e795dba
Implement i32.div_s ( #1792 )
2022-12-13 10:48:51 +08:00
Huang Qi and GitHub
f6bef1e604
Implement i32.rem_s and i32.rem_u intrinsic ( #1789 )
2022-12-08 09:38:20 +08:00
Huang Qi and GitHub
371310fdee
Dump more info when spec test fails with XIP mode ( #1779 )
2022-12-05 10:00:50 +08:00
Huang Qi and GitHub
a29344ae6c
Enable spec test on nuttx and daily run it ( #1763 )
...
- Spec test needs about 15 min
- Skip some test cases that cannot pass now, most of which are FP relative
(due to potential bugs in NuttX's libc)
2022-12-02 12:39:46 +08:00
Huang Qi and GitHub
9c5e1cb600
wamr-test-suites: Add support for ARM/RISCV by QEMU ( #1704 )
...
Enhance wamr-test-suites to add QEMU and Firmware options:
`./test_wamr.sh -Q <qemu> -F <firmware>`
2022-11-28 10:45:32 +08:00
Huang Qi and GitHub
93d3d09aa1
Clear some warnings and enable -Werror for NuttX ( #1756 )
2022-11-28 09:44:33 +08:00
Huang Qi and GitHub
0456043d8d
Fix missing intrinsics for risc-v which were reported by spec test ( #1750 )
2022-11-25 09:20:38 +08:00
Huang Qi and GitHub
4e5ba6f6ef
Fix issue of thumb relocation R_ARM_THM_MOVT_ABS ( #1723 )
2022-11-19 19:36:02 +08:00
Huang Qi and GitHub
b5efadf205
nuttx: Enable ref types by Kconfig ( #1711 )
2022-11-17 11:56:59 +08:00
Huang Qi and GitHub
4b0660cf24
Fix missing float cmp for XIP ( #1699 )
2022-11-14 11:58:38 +08:00
Huang Qi and GitHub
810007857b
wamr-test-suites: Update runtest.py to support python3 ( #1684 )
...
Update runtest.py of wamr-test-suites to support both python2 and python3
2022-11-07 14:16:10 +08:00
Huang Qi and GitHub
4b6e4e1732
Correct the arch name for armv7a on NuttX ( #1678 )
2022-11-03 21:54:05 +08:00
Huang Qi and GitHub
c8cacbd883
Add LLVM_BUILD_OP_OR_INTRINSIC to avoid code dup ( #1672 )
2022-11-03 11:48:48 +08:00
Huang Qi and GitHub
94cecbe4cb
Fix XIP issues of fp to int cast and int rem/div ( #1654 )
2022-11-01 20:29:07 +08:00
Huang Qi and GitHub
4a1e522c53
Move indirect mode optimization to the last of LLVM pipelines ( #1627 )
...
The general optimizations may create some intrinsic function calls
like llvm.memset, so we move indirect mode optimization after them
to remove these function calls at last.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
2022-10-24 10:20:05 +08:00
Huang Qi and GitHub
73809efb5d
Fix XIP issue caused by rem_s on RISC-V ( #1619 )
2022-10-19 16:46:26 +08:00
Huang Qi and GitHub
86d3f30600
Implement R_ARM_THM_MOVT_[ABS|REPL] for thumb ( #1615 )
2022-10-19 06:08:51 +08:00
Huang Qi and GitHub
d7c2e9a6ea
Fix NuttX CI break by install missing dependencies ( #1532 )
2022-09-29 12:31:56 +08:00
Huang Qi and GitHub
bbea005db6
Make libc-builtin buffered printf be a common feature ( #1483 )
...
Add macros to control whether to use the libc-builtin buffered printf
and the buffer size.
2022-09-15 15:09:01 +08:00
Huang Qi and GitHub
8fcc556e50
ci: Cover more configurations & targets on NuttX ( #1448 )
...
Enable building iwasm on Nuttx for target:
* x86
* cortex-m0
* cortex-m4
* cortex-m7
* rv32imac
* rv64imac
* rv64gc
2022-09-05 12:12:32 +08:00
Huang Qi and GitHub
531a011700
Move WASM_ENABLE_SPEC_TEST to correct place ( #1447 )
...
Fix compilation warning:
```
wamr/product-mini/platforms/nuttx/../posix/main.c:622:5: warning: "WASM_ENABLE_SPEC_TEST" is not defined, evaluates to 0 [-Wundef]
622 | #if WASM_ENABLE_SPEC_TEST != 0
```
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
2022-09-03 08:18:45 +08:00
Huang Qi and GitHub
c56fd8bd5b
Introduce basic CI for nuttx ( #1444 )
2022-09-02 11:07:59 +08:00
Huang Qi and GitHub
c64186b704
Fix potential warning of printf in main.c of posix and windows ( #1440 )
2022-09-01 14:11:00 +08:00
Huang Qi and GitHub
77c516ac80
Add a new API to get free memory in memory pool ( #1430 )
2022-08-31 16:39:25 +08:00
Huang Qi and GitHub
2178787664
Implement i64.div and i64.rem intrinsics ( #1375 )
2022-08-12 11:09:06 +08:00
Huang Qi and GitHub
88cf1e36c1
Support custom stack guard size ( #1368 )
...
Add a new option WAMR_BUILD_STACK_GUARD_SIZE to set the custom
stack guard size. For most RTOS systems, we use the native stack base
address as the check boundary which may be not safe as POSIX based
systems (like Linux).
2022-08-12 10:17:11 +08:00
Huang Qi and GitHub
2ee01657a6
Add semaphore support for NuttX ( #1367 )
2022-08-09 19:35:16 +08:00
Huang Qi and GitHub
f3f8d684b3
Implement POSIX semaphore support for linux platform ( #1345 )
...
Implement POSIX semaphore support for linux platform
2022-08-08 19:59:46 +08:00
Huang Qi and GitHub
0065743075
Correct DPFPU and FPU handling for NuttX ( #1027 )
...
Since DPFPU depends on FPU, if FPU is enabled we will never enter DPFPU
branch since `ifeq (${CONFIG_ARCH_FPU}, y)` is always true.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
2022-03-08 13:31:38 +08:00
Huang Qi and GitHub
44d75cec3c
Ignore .cache used by clangd ( #1018 )
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
> And another question, I got many warnings while compiling wamr by clang like:
>
> ```
> [10/67] Building C object CMakeFiles/vmlib.dir/home/huang/Work/wasm-micro-runtime/core/iwasm/common/wasm_exec_env.c.o
> In file included from /home/huang/Work/wasm-micro-runtime/core/iwasm/common/wasm_exec_env.c:6:
> In file included from /home/huang/Work/wasm-micro-runtime/core/iwasm/common/wasm_exec_env.h:11:
> /home/huang/Work/wasm-micro-runtime/core/iwasm/common/../interpreter/wasm.h:573:53: warning: unused parameter 'type_count' [-Wunused-parameter]
> wasm_get_smallest_type_idx(WASMType **types, uint32 type_count,
> ^
> 1 warning generated.
> [15/67] Building C object CMakeFiles/vmlib.dir/home/huang/Work/wasm-micro-runtime/core/iwasm/common/wasm_application.c.o
> In file included from /home/huang/Work/wasm-micro-runtime/core/iwasm/common/wasm_application.c:8:
> In file included from /home/huang/Work/wasm-micro-runtime/core/iwasm/common/../interpreter/wasm_runtime.h:9:
> /home/huang/Work/wasm-micro-runtime/core/iwasm/interpreter/wasm.h:573:53: warning: unused parameter 'type_count' [-Wunused-parameter]
> wasm_get_smallest_type_idx(WASMType **types, uint32 type_count,
> ^
> 1 warning generated.
> ```
>
> It can be fixed simply by -Wno-unused-parameter, but should we fix it by `UNUSED(xxx)` manually ?
It would be great to fix these warnings, but it really takes efforts.
2022-02-23 11:21:14 +08:00
Huang Qi and GitHub
c2d041ce94
Improve riscv target option compatibility for NuttX ( #987 )
...
Improve riscv target option compatibility for NuttX
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
Change-Id: I100793e0f00e7e4929e295c4bb1ef1ec21d83fe9
2022-01-28 09:13:41 +08:00