Skip to content

Commit ad16d32

Browse files
authored
Optimize strlen and strchr on ARM (#262)
1 parent 9706fa9 commit ad16d32

File tree

14 files changed

+316
-258
lines changed

14 files changed

+316
-258
lines changed

embed/bcw2/bcw2.wasm

-4.93 KB
Binary file not shown.

embed/bcw2/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ cd ~-
6060

6161
"$BINARYEN/wasm-ctor-eval" -g -c _initialize bcw2.wasm -o bcw2.tmp
6262
"$BINARYEN/wasm-opt" -g --strip --strip-producers -c -O3 \
63-
bcw2.tmp -o bcw2.wasm \
63+
bcw2.tmp -o bcw2.wasm --low-memory-unused \
6464
--enable-simd --enable-mutable-globals --enable-multivalue \
6565
--enable-bulk-memory --enable-reference-types \
6666
--enable-nontrapping-float-to-int --enable-sign-ext

embed/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ trap 'rm -f sqlite3.tmp' EXIT
2727

2828
"$BINARYEN/wasm-ctor-eval" -g -c _initialize sqlite3.wasm -o sqlite3.tmp
2929
"$BINARYEN/wasm-opt" -g --strip --strip-producers -c -O3 \
30-
sqlite3.tmp -o sqlite3.wasm \
30+
sqlite3.tmp -o sqlite3.wasm --low-memory-unused \
3131
--enable-simd --enable-mutable-globals --enable-multivalue \
3232
--enable-bulk-memory --enable-reference-types \
3333
--enable-nontrapping-float-to-int --enable-sign-ext

embed/sqlite3.wasm

-4.82 KB
Binary file not shown.

sqlite3/libc/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ trap 'rm -f libc.tmp' EXIT
1818
-mbulk-memory -mreference-types \
1919
-mnontrapping-fptoint -msign-ext \
2020
-fno-stack-protector -fno-stack-clash-protection \
21+
-Wl,--stack-first \
22+
-Wl,--import-undefined \
2123
-Wl,--initial-memory=16777216 \
2224
-Wl,--export=memchr \
2325
-Wl,--export=memcmp \

sqlite3/libc/libc.wasm

76 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)