This is the mail archive of the
mailing list for the GCC project.
Re: 答复: Is there any possibility to parallel compilation in a single file?
- From: Andrew Haley <aph at redhat dot com>
- To: "Gengyulei (Gengyl)" <gengyulei at huawei dot com>, Markus Trippelsdorf <markus at trippelsdorf dot de>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Tue, 29 Jul 2014 10:37:28 +0100
- Subject: Re: 答复: Is there any possibility to parallel compilation in a single file?
- Authentication-results: sourceware.org; auth=none
- References: <68F796C32E86164B912241DBB365994357E5AF8D at SZXEMA501-MBS dot china dot huawei dot com> <20140729082118 dot GC22904 at x4> <68F796C32E86164B912241DBB365994357E5AFB1 at SZXEMA501-MBS dot china dot huawei dot com>
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.