You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CI: Testing NodeJS version compare fix/make-robust
The statement string(COMPARE GREATER_EQUAL "${WASM_EXEC_VERSION}" "v16.0.0" IS_NODE_ABOVE_16) in integration_tests/CMakeLists.txt can/might return wrong/undesired result when the node version is between (around) v2.0.0 to <=v9.x.x.
During wasm to wat conversion, we currently skip the first eight bytes of wasm (as they contain the magic number and wasm version). Ideally, we should check/verify these eight bytes and return/exit with an error.
Auto-generating wasm_to_wat.h using script
Pass wasm_bytes stream from C++ to JavaScript using Heap. That is Heap Method for accessing uint8_t* wasm_bytes.
To pass bytes from lfortran.wasm to the JavaScript frontend for execution, we construct a string from the bytes (since, few attempts to pass bytes directly did not succeed, where as passing strings was successful).
As per the wasm docs, it seems that the different sections in wasm should/must appear as per the increasing order of their section ids (I guess, custom sections might be an exception). We should possibly try to generate error if the sections in the wasm are not in proper/expected order.
Closing in favor of lcompilers/lpython#1485. All items are either fixed, or we created issues for them (in either LPython or LFortran) and are tracking it in 1485.
lfortran
towasm
indebug
type.release
type (for speed). dev.lfortran.org: use Release build #1240Currently, the(WASM: Support runtime library #643, WASM: Fix import functions bug #657)runtime
library is not supported atdev.lfortran.org
string(COMPARE GREATER_EQUAL "${WASM_EXEC_VERSION}" "v16.0.0" IS_NODE_ABOVE_16)
inintegration_tests/CMakeLists.txt
can/might return wrong/undesired result when thenode
version is between (around)v2.0.0
to<=
v9.x.x
.Add Bitwise operatorsVerify preamble in wasm decoding(WAT: verify preamble #631)Duringwasm
towat
conversion, we currently skip the first eight bytes ofwasm
(as they contain themagic
number andwasm
version). Ideally, we should check/verify these eight bytes and return/exit with an error.wasm_to_wat.h
using scriptwasm_bytes
stream fromC++
toJavaScript
using Heap. That is Heap Method for accessinguint8_t* wasm_bytes
.lfortran.wasm
to theJavaScript
frontend for execution, we construct a string from the bytes (since, few attempts to pass bytes directly did not succeed, where as passing strings was successful).wasm_to_wat.cpp
might/can parsewasm
with sections in any (random) order. WASM: give an error message if sections are in wrong order lcompilers/lpython#1486wasm
docs, it seems that the different sections inwasm
should/must appear as per the increasing order of their section ids (I guess, custom sections might be an exception). We should possibly try to generate error if the sections in thewasm
are not in proper/expected order.WASI
Environment for executing generatedwasm
(Ensure the WASM output is compatible with wasmtime + WASI lcompilers/lpython#1461)C
runtime
library in theLLVM
basedWASM
Backend. WASM: Runtime Library lcompilers/lpython#1413The text was updated successfully, but these errors were encountered: