Ok, I filed https://github.com/kripken/emscripten/issues/2785 to look into
the iostream stuff. I assume those money functions (I've noticed those too)
are related to that.

Note that we build libc++ with -Oz now, which makes this less worse than
before... but still bad.

- Alon

On Thu, Sep 11, 2014 at 3:57 PM, Nicholas Wilson <
[email protected]> wrote:

> That's a great idea!  I've been meaning to hack out those libc++ symbols
> on our builds too, because they're particularly evil due to inlining.
>
> For these two symbols particularly, I get warnings saying "these functions
> are huuuuge, consider using the outlining feature, they contain 50000
> lines", and it's the annoying money local traits that we certainly don't
> touch:
>
> __ZNSt3__19money_getIwNS_19istreambuf_iteratorIwNS_
> 11char_traitsIwEEEEE8__do_getERS4_S4_bRKNS_6localeEjRjRbRKNS_
> 5ctypeIwEERNS_10unique_ptrIwPFvPvEEERPwSM_
> __ZNSt3__19money_getIcNS_19istreambuf_iteratorIcNS_
> 11char_traitsIcEEEEE8__do_getERS4_S4_bRKNS_6localeEjRjRbRKNS_
> 5ctypeIcEERNS_10unique_ptrIcPFvPvEEERPcSM_
>
> Nick
>
> On Thursday, 11 September 2014 21:47:52 UTC+1, Chad Austin wrote:
>>
>> If you link in the Standard C++ Library, global constructors in the
>> library run before main().  The global constructors that are pulling in all
>> of that iostream code are std::cout, std::cin, std::cerr, std::wcout,
>> std::wcin, and std::wcerr.
>>
>> We build libc++ ourselves rather than letting emscripten do it, and we
>> simply don't include the source files that define std::cout and friends.
>>
>>
>>   --
> 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.

Reply via email to