On Wed, Oct 10, 2018 at 8:20 PM stephen.weber via emscripten-discuss <[email protected]> wrote: > > Hello! > > I am trying to compile some C code with emscripten to use with a non-browser > WASM VM, so I can't use the generate JS shims and have to fill in anything > actually needed on my own. The bulk of what I need after an `-O3` is not a > big deal (Math.pow and such) but all of the invoke_* wrappers have me > stumped. What are these wrappers for? Will calling a WASM C function from > another WASM C function, even via pointer, ever generate a JavaScript > exception (in the browser context)? If not, is there any way to tell emcc > "hey, this is all C code here" or something and have the `invoke_*` wrappers > not be used?
If you only want to build a pure wasm module you might want to try just using the clang+lld directly. We recently transitioned to be a default architecture if llvm so you can build wasm modules directly with "clang --target=wam32". You will need to a recent build of clang and llvm. On the matter of the invoke_ functions, I believe they can are generated when you use either exceptions or setjmp/longjmp > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
