Open luc-blaeser opened 1 month ago
Comparing from 247aa056afe9d5499f9f79d78d6d38117b8478ae to a6d1305b087e5968ddba40452cacaa0ef1223a80: In terms of gas, 4 tests regressed, 1 tests improved and the mean change is -0.0%. In terms of size, 5 tests regressed and the mean change is +29.3%.
Upgrading Motoko RTS dependencies:
Special aspects:
wasm32
andwasm64
.dylink.0
instead ofdylink
.GOT.mem
for RTS in the Motoko linker.wasm-ld
) needs a bug fix: https://github.com/llvm/llvm-project/pull/104043. Therefore, patchingwasm-ld
.musl
. There are format changes to output ofNaN
andinfinity
. Moreover, one particular output format (hexadecimal float) is no longer supported. Updating the documentation and base library is needed.musl
is still used in 32-bit but not in 64-bit. In the future, we should get rid ofmusl
entirely. Themusl
import is rather old, upgrading is complicated as it involves a lot of unwanted dependencies.emscripten
for 64-bit Wasm compilation (as there is a nix build issue with latestemscripten
). Instead, theclang
compiler is directly invoked.wasm-opt
is applied to again reduce it to an acceptable size.Note:
nix-shell
crashes with a segmentation fault with this PR, you need to upgradenix
. For this, you need to manually uninstall and re-installnix
.