I am using ver 1.16.0 of the EMSDK. I do notice that the compilation is 
faster if I omit -g. But I realize that the -profiling flag is the same as 
-g2 which does not give me variable names and that makes it hard to debug. 
I tried to use -g3 but the compilation time turns out to be even longer.

I can trying doing -O1 but will that slow down the code?  

I will try out EMCC_DEBUG=1 and let you know which stage is taking more 
time. Thanks for your help.

On Wednesday, August 13, 2014 7:29:08 PM UTC+8, jj wrote:
>
> Which version of Emscripten and Clang are you using? (or emsdk tool 
> versions if you're using that) Can you set the EMCC_DEBUG=1 environment 
> variable, do a full recompile and measure what step(s) take up the largest 
> portion of time? Try omitting -g if you are already passing -profiling. 
> Does that change the performance? Also, how about if you do a -O1 build 
> instead of a -O2?
>
>
> 2014-08-13 13:52 GMT+03:00 awt <[email protected] <javascript:>>:
>
>> Hi,
>>
>> I'm compiling a rather large project with the following flags, -g and 
>> -O2 for Clang and -profiing for the Emcc Linker. Unfortunately, it takes up 
>> to 30mins for a full compilation and 12mins when I change one file. Are 
>> there any compiler flags or code optimizations that I can do to speed up 
>> the compilation?
>>
>> I am trying to view the function and variable names while keeping the 
>> size of the generated js small at the same time. Any suggestions would be 
>> much appreciated. Thanks.
>>  
>> -- 
>> 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] <javascript:>.
>> 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