[PATCH v4] genemit.c (main): split insn-emit.c for compiling parallelly
Thu Aug 27 12:41:34 GMT 2020
在 2020年8月2日 +0800 AM8:09，Segher Boessenkool <email@example.com>，写道：
> On Sat, Aug 01, 2020 at 07:02:07PM +0800, Jojo R wrote:
> > +insn-generated-split-num = $(shell nproc)
> nproc isn't portable, is not the same on every system, and can lead to
> a number of processes quadratic in the number of processors being
> launched (say, if someone does make -jK with K some fraction of the
> number of processors).
> (It is a bad choice anyway: nproc shows how many hardware threads are
> available, not how many it is a good idea to use for optimal
> performance; and it can be overridden by the user as well, via an
> environment variable).
> You need to split to some fixed number of parts, where that fixed number
> can depend on the target, but not on the host (or build machine) at all.
Ok & Thanks,
It’s fixed in patch v5
More information about the Gcc-patches