cxx-wasm-freestanding

example of a c++ -> wasm build that doesn't use emscripten or any standard library (by nikki93)

Cxx-wasm-freestanding Alternatives

Similar projects and alternatives to cxx-wasm-freestanding

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better cxx-wasm-freestanding alternative or higher similarity.

cxx-wasm-freestanding reviews and mentions

Posts with mentions or reviews of cxx-wasm-freestanding. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-15.
  • WASM by Example
    16 projects | news.ycombinator.com | 15 Nov 2023
    Hello world just needs to call console.log, so doesn't need libc. Here's an example that builds without libc / emscripten to produce a very small wasm hello world: https://github.com/nikki93/cxx-wasm-freestanding

    You do need some JS code that asks the browser to run the wasm blob. You can't eg. just have a script tag that refers to a wasm blob yet.

    libc does help with things like having an allocator or string operations etc., or for using C libraries that use libc. And that's where emscripten becomes helpful.

    Browser functionality like the console or making html elements is exposed through JS interfaces, and the wasm needs

Stats

Basic cxx-wasm-freestanding repo stats
1
3
10.0
over 2 years ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com