This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

答复: Is there any possibility to parallel compilation in a single file?


Thank you for your answer. I find the most time consuming process in compiling a file is the optimization of the cgraph nodes (execute all_passes), 
This process is sequence, one node by one node. If we divide the cgraph nodes into unrelated forest, we can parallel it, is this way feasible? 

Thank you.

-----邮件原件-----
发件人: Markus Trippelsdorf [mailto:markus@trippelsdorf.de] 
发送时间: 2014年7月29日 16:21
收件人: Gengyulei (Gengyl)
抄送: gcc@gcc.gnu.org
主题: Re: Is there any possibility to parallel compilation in a single file?

On 2014.07.29 at 08:07 +0000, Gengyulei (Gengyl) wrote:
> Hi:
> 
>  Is there any possibility to parallel the compilation in a single file  
> scope? For large application the compilation time is long, although  
> we can parallel the process at the level of files, we still try to  
> find a way to accelerate the compilation in a single file. Can we  
> change some serial process into
> 
> Parallel?  Could you give me some advices? Thank you very much.

Compiling with -flto=<number of cores> and gcc-4.9 should help.

--
Markus

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]