reducing compiler instances during buildkernel

Peter Jeremy peterjeremy at acm.org
Mon Nov 7 07:46:29 UTC 2011


On 2011-Nov-05 22:30:21 +0000, Alexander Best <arundel at freebsd.org> wrote:
>wouldn't it be possible to somehow spawn N gcc or clang instances
>(make -jN buildkernel) and then pipe the src to one of those N instances?
>just like with something like multics N processes were started and then people
>used the job control language to load binaries into those processes.

This is likely to require very non-trivial changes to gcc or clang.
The major issue is that the process needs to be in a known initial
state before beginning a compile - and it's very unlikely that the
compiler cleans itself up enough to return to that state.

If you really want to trim low-hanging fruit, try disposing of libtool
and GNU configure instead - their overheads are _many_ orders of
magnitude higher than make exec()ing gcc.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20111107/28b19b36/attachment.pgp


More information about the freebsd-hackers mailing list