You can strip out some things by building with -s NO_FS=1 -s NO_BROWSER=1. But still, there is a bunch of runtime stuff that is included as almost all programs need it.
But if you just want the compiled code itself, you can take it from inside the asm() function, as a hack. A simple function that receives simple inputs might just work, but anything serious will likely run into problems from lack of runtime support. - Alon On Thu, Jan 8, 2015 at 5:26 AM, Stéphane Letz <[email protected]> wrote: > Hi, > > I would like to compile a single C++ file in JS without having the > complete Emscripten runtime be added in the .js file output. Its that > possible and how? > > Thanks. > > Stéphane Letz > > -- > 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.
