Skip to content

Commit

Permalink
Add information about wasm.
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Jan 11, 2025
1 parent 18bf8c8 commit 516e912
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/content/docs/FAQ/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ You can try this:

`compile --reloc=none --target wasm32 -g0 --link-libc=no --no-entry mywasm.c3`

Unless you are compiling with something that already runs initializers,
you will need to call the function `runtime::wasm_initialize()` early in your
main *or* call it externally (for example from JS) with the name `_initialize()`,
otherwise globals might not be set up properly.

This should yield an `out.wasm` file, but there is no CI running on the WASM code
and no one is really using it yet, so the quality is low.

Expand All @@ -303,6 +308,7 @@ writing something in WASM - please reach out to the developer team and we'll
help you get things working.



**Q:** How do I conditionally compile based on compiler flags?

**A:** You can pass *feature flags* on the command line using `-D SOME_FLAG` or using the `features` key
Expand Down

0 comments on commit 516e912

Please sign in to comment.