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]

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


On 07/29/2014 10:27 AM, Gengyulei (Gengyl) wrote:
> 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? 

I suspect it is, but would require a lot of re-engineering.

The GCC approach is to split source into compilation units
of reasonable size and to optimize at link time.

Andrew.


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