stdc++ is built into a .a file, so only needed parts are linked in. You can see which using EMCC_DEBUG=1 in the env, e.g.
DEBUG:root:adding object /tmp/emscripten_temp/tmppDFHhH/memory_a15a6fd4.cpp.o to link means it added memory.cpp.o. I believe iostream.cpp is the mail file with streams support, but maybe also ios.cpp, etc. On Wed, Sep 7, 2016 at 4:31 AM, Marco Trivellato <[email protected]> wrote: > Really interesting blog post indeed. > > Regarding "emscripten now has two versions of the stdc++ library, one with > and one without iostream support, and selects the right one automatically." > > I was wondering if there is an easy way to know which version was chosen > by emscripten (i guess by searching for iostream symbols in the generated > asm.js?) and whether there is a setting to make the selection (as opposed > to emscripten doing the right thing for you). > > thanks, > Marco > > > On Saturday, August 27, 2016 at 2:20:16 PM UTC+1, Floh wrote: >> >> I've written a little blog post about my experience with reducing the >> size of emscripten compiled code, may be helpful for people who are just >> getting started with emscripten: >> >> http://floooh.github.io/2016/08/27/asmjs-diet.html >> >> Cheers :) >> -Floh. >> >> -- > 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.
