Comparing the size of the .c code to the size of the generated .js file doesn't make a lot of sense, it makes more sense to compare the size of the generated native executable to the size of the generated asm.js code. If both are gzipped the sizes are about the same (at least for non-trivial code). I did a size comparison for various platforms a while back, check slide 15:
http://www.slideshare.net/andreweissflog3/gdce2013-cpp-ontheweb Cheers, -Floh. Am Mittwoch, 18. Juni 2014 16:46:55 UTC+2 schrieb [email protected]: > > > I want to convert a function(writen in .c) to javascript, and used > ./emcc > XXXX.c -o function.html -s EXPORTED_FUNCTIONS="['_XXXX']". But I found the > function.js is too larger than XXX.c, there are many functions which > depends on runtime. I only want to get the function writen in javascript, > who can help me, thank you! > -- 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.
