Skip to content

Wasm support #2

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

Open
kassane opened this issue Jan 6, 2025 · 0 comments
Open

Wasm support #2

kassane opened this issue Jan 6, 2025 · 0 comments
Labels
good first issue Good for newcomers todo milestone in planning

Comments

@kassane
Copy link
Owner

kassane commented Jan 6, 2025

Currently, both versions of ldc2 (D and openD) are compatible and receive synchronous updates.
They support the LLVM's wasm32/64 ABI1, allowing the generation of WebAssembly (wasm) binaries with or without the use of Emscripten2.
However, this feature is still considered experimental.

dub flags: --arch=wasm32-emscripten-unknown-wasm | --arch=wasm32-unknown-unknown-wasm [freestanding]

References

Footnotes

  1. ldc2-1.40.0 has fix wasm-abi

  2. opend-ldc2 have experimental GC support for emscripten. However not works with emmalloc based on my tests here.

@kassane kassane added documentation Improvements or additions to documentation todo milestone in planning labels Jan 6, 2025
@kassane kassane added good first issue Good for newcomers and removed documentation Improvements or additions to documentation labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers todo milestone in planning
Projects
None yet
Development

No branches or pull requests

1 participant