-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WASM: Runtime Library #555
Comments
I tried the following test cases at the current live site https://dev.lfortran.org/
They all seem to work. Thus, it seems the Please, could someone possibly share if this issue is safe to close? |
Thank you for sharing the bug, Ondrej Sir. We merged a |
With the fixes in #657 and lfortran/lcompilers_frontend#40, the latest |
I tested these examples again at https://dev.lfortran.org/. They all seem to work. Thus, it seems the runtime library works at https://dev.lfortran.org/ Please, could someone possibly share if this issue is safe to close? |
I tested this by hand as well and I think everything is indeed fixed! Amazing. The parts of the runtime library that do not work are all calls into C, however I am guessing just providing the appropriate JavaScript implementations might fix it. We will eventually use pure Fortran implementations of trigonometric functions like sin(x). But for now we can either implement them in JavaScript, or figure out how to compile the C part of the runtime library using Clang and somehow link it. |
Original issue: https://gitlab.com/lfortran/lfortran/-/issues/720
Continued from https://gitlab.com/lfortran/lfortran/-/issues/706
Related to https://gitlab.com/lfortran/lfortran/-/issues/700
For the
LFortran
WebAssembly
Backend, we need to get theruntime library
working, so that one can use functions like sin/cos, etc.The
runtime library
has two parts:pure
part (we have to package the.mod
files together with the emscripten compiled LFortran. (WASM: Support runtime library #643, Support runtime library lcompilers_frontend#37)impure
part (Implemented inC
)print
function (https://gitlab.com/lfortran/lfortran/-/merge_requests/1794)cpu_time
(WASM: Add support for cpu_time #641)The text was updated successfully, but these errors were encountered: