Skip to content

Note alternatives to Emscripten in C to Wasm guide#44351

Open
vamshikrishnaramasamy wants to merge 1 commit into
mdn:mainfrom
vamshikrishnaramasamy:docs/issue-20177-wasm-alternatives
Open

Note alternatives to Emscripten in C to Wasm guide#44351
vamshikrishnaramasamy wants to merge 1 commit into
mdn:mainfrom
vamshikrishnaramasamy:docs/issue-20177-wasm-alternatives

Conversation

@vamshikrishnaramasamy
Copy link
Copy Markdown
Contributor

Fixes #20177.

The guide only mentions Emscripten, which led to the request for a pointer to lighter, more portable alternatives. Per the discussion on the issue (@Josh-Cena and @bsmth), the consensus was to keep the tutorial primarily Emscripten-based but add a note about alternatives in the introduction — so this adds a short note pointing to compiling C directly with Clang/LLVM or the WASI SDK, while noting what Emscripten provides that those don't (libc, file system, and other OS emulation).

The Clang/LLVM reference is the surma.dev write-up @bsmth linked in the thread.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vamshikrishnaramasamy vamshikrishnaramasamy requested a review from a team as a code owner June 4, 2026 01:28
@vamshikrishnaramasamy vamshikrishnaramasamy requested review from chrisdavidmills and removed request for a team June 4, 2026 01:28
@github-actions github-actions Bot added Content:wasm WebAssembly docs size/xs [PR only] 0-5 LoC changed labels Jun 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

Preview URLs (1 page)

External URLs (2)

URL: /en-US/docs/WebAssembly/Guides/C_to_Wasm
Title: Compiling a new C/C++ module to WebAssembly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:wasm WebAssembly docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C to Wasm compilation should mention alternatives to Emscripten

2 participants