Re: reducing compiler instances during buildkernel

看板FB_hackers作者時間14年前 (2011/11/07 16:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
--OwLcNYc0lM97+oe1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2011-Nov-05 22:30:21 +0000, Alexander Best <arundel@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 pe= ople >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. --=20 Peter Jeremy --OwLcNYc0lM97+oe1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk63jNAACgkQ/opHv/APuIcl+QCgiX+g1iNm47KV5GIA+yaJ474r CVUAoKQJQXVAkJfvFBhqbB1iUV5DAy/U =G+sz -----END PGP SIGNATURE----- --OwLcNYc0lM97+oe1--
文章代碼(AID): #1Ejv0_qZ (FB_hackers)
文章代碼(AID): #1Ejv0_qZ (FB_hackers)