mailing list of musl libc
 help / color / mirror / code / Atom feed
* WebAssembly (Wasm) support in Musl
@ 2017-11-27 19:11 Nicholas Wilson
  2017-11-27 20:27 ` A. Wilcox
  2017-11-28 13:03 ` Szabolcs Nagy
  0 siblings, 2 replies; 5+ messages in thread
From: Nicholas Wilson @ 2017-11-27 19:11 UTC (permalink / raw)
  To: musl

Hi,

I'm interested in the plans for WebAssembly support in Musl.

(Background: WebAssembly is a new portable Virtual Machine instruction set, designed for use in browsers to run performance-critical code. It's supported now in all major browsers, and could be a significant part of the web platform in future.)

The Emscripten project has previously used Musl internally, based on a fork, and that's using a quite complicated compiler that performs many legacy pre- and post-processing stages. (I have previously contributed to LLVM and Emscripten, but I'm not affiliated with either project.)

Recently, LLVM/Clang have been working on a brand new & clean compiler target, designed to generate WebAssembly output directly in a clean way, without Emscripten's existing convoluted intermediate steps. The native Clang support for WebAssembly is nearing the point where it's ready to use - at which point it will need a libc!

I'd like to see that added to Musl natively, as part of the upstream release. Is that something that you would be willing to accept patches for?

I've got some patches ready, and apart from adding some new directories ("arch/wasm", "src/internal/wasm") there are hardly any changes at all needed to the core code to get it all compiling for Wasm.

All the best,
Nick

---
Nick Wilson
RealVNC Ltd

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-11-28 13:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-27 19:11 WebAssembly (Wasm) support in Musl Nicholas Wilson
2017-11-27 20:27 ` A. Wilcox
2017-11-27 21:03   ` Jon Chesterfield
2017-11-28 13:03 ` Szabolcs Nagy
2017-11-28 13:09   ` Nicholas Wilson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).