On Tue, Jul 8, 2014 at 2:20 PM, Alon Zakai <[email protected]> wrote:

> So it goes from 372K to 1.3MB, when moving to SDL2? That seems very high.
> Not on topic for this thread, but we should investigate why it's so big.
>

As you're quite familiar, I would appreciate any investigation into how we
can make the generated code smaller.  :)


>
> - Alon
>
>
>
> On Tue, Jul 8, 2014 at 10:54 AM, Sathyanarayanan Gunasekaran <
> [email protected]> wrote:
>
>> Hi,
>>
>> On Mon, Jul 7, 2014 at 11:07 PM, Sathyanarayanan Gunasekaran
>> <[email protected]> wrote:
>> >
>> >> And just out of curiosity, what is the code size (JS) when you take
>> one of
>> >> the simple SDL tests for which you have a 1.2 and 2.0 version? I
>> assume 2.0
>> >> would be larger, but hopefully not by much, I am hoping LLVM dead code
>> >> elimination would remove almost all of it if little is used.
>> >
>> > test_sdl2_canvas_blank
>> > 104K    test.html
>> > 5.1M    test.js
>> >
>> > test_sdl_canvas_blank
>> > 104K    test.html
>> > 372K    test.js
>> >
>> > This is pretty crazy.
>> >
>>
>> Ah, running with -O2 reduces the size -
>> test_sdl2_canvas_blank
>> 104K    test.html
>> 1.3M    test.js
>>
>> Thanks,
>> --Sathya
>>
>> >> Assuming we merge to trunk, we should get in and automate relevant
>> tests
>> >> from their test suite, depending on their number and time to execute.
>> >
>> > I've ported over most of the SDL1.x emscripten tests[0], which we can
>> > use for testing. Only some of the SDL2 tests can be automated.
>> >
>> > Thanks,
>> > --Sathya
>> >
>> > [0]: https://github.com/gsathya/SDL-emscripten/wiki/Emscripten-tests
>> >
>> >> - Alon
>> >>
>> >>
>> >>
>> >>
>> >> On Mon, Jul 7, 2014 at 12:04 PM, Sathyanarayanan Gunasekaran
>> >> <[email protected]> wrote:
>> >>>
>> >>> Hello all,
>> >>>
>> >>> I've been working on porting SDL2 to emscripten with help from
>> >>> Daft-Freak. It's in a usable state and almost all of the SDL2 tests[0]
>> >>> have been ported over. The changes are going to be up streamed to SDL2
>> >>> soon[1].
>> >>>
>> >>> Here's the code -
>> >>> https://github.com/gsathya/SDL-emscripten/
>> >>>
>> >>> Here's more information on how to use it -
>> >>> http://gsathya.in/blog/mozilla/sdl2-emscripten.html
>> >>>
>> >>> I think SDL2 is used enough that emscripten benefits from integrating
>> >>> the cross compiled SDL2 into master, but this could to increase in
>> >>> size(the cross compiled bitcode is 1.4M). Do we want to integrate this
>> >>> into emscripten? Thoughts?
>> >>>
>> >>> Thanks,
>> >>> --Sathya
>> >>>
>> >>> [0]: https://github.com/gsathya/SDL-emscripten/wiki/SDL-Tests
>> >>> [1]:
>> >>>
>> http://lists.libsdl.org/pipermail/sdl-libsdl.org/2014-July/095475.html
>> >>>
>> >>> --
>> >>> 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.
>>
>> --
>> 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.
>



-- 
Chad Austin
Technical Director, IMVU
http://engineering.imvu.com <http://www.imvu.com/members/Chad/>
http://chadaustin.me

-- 
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