-
Notifications
You must be signed in to change notification settings - Fork 116
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
wasm2c example #864
Labels
enhancement
New feature or request
Comments
We're open to an example being contributed but we aren't going to create one for |
No idea where to start. You are the expert in this domain. |
So far trying to use this https://github.com/WebAssembly/wabt/blob/main/wasm2c/benchmarks/dhrystone/main.c example.
With
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the idea?
Work with wabt's
wasm2c
to provide a minimal, complete, example of JavaScript => WebAssembly => C => native executable.What problem does it solve?
...
JavaScript <=> WASM <=> C <=> native executable.
I've been experimenting with passing code generated by Javy to wabt's
wasm2c
. There is a basic hello example of creating a main function to compile the.h
and.c
files generated bywasm2c
here https://github.com/WebAssembly/wabt/tree/main/wasm2c#using-the-generated-module. However, there's no complete example of creating a main function and compiling the C produced bywasm2c
for Javy code.Javy source code
Building with
javy
How this can be executed in JavaScript world
wasm2c
That write around a 16 MB
plugin.c
and 3.2 KBplugin.h
.How to create a
main.c
andmain
function for that generated C to be compiled to a standalone executable bygcc
orclang
, just like thefac
example in wabt's repository?See WebAssembly/wabt#2521.
The text was updated successfully, but these errors were encountered: