Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Wherever you go...There you are. -- Buckaroo Banzai


devel / comp.lang.xharbour / Multicore compile mode

SubjectAuthor
* Multicore compile modeEnrico Maria Giordano
`* Re: Multicore compile modeDlzc
 `- Re: Multicore compile modeEnrico Maria Giordano

1
Multicore compile mode

<umri3m$1mvis$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18244&group=comp.lang.xharbour#18244

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Multicore compile mode
Date: Sun, 31 Dec 2023 12:08:39 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <umri3m$1mvis$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 31 Dec 2023 11:08:38 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f9f47974488cb050ac8579d07a5171c6";
logging-data="1801820"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18UzknIjR7Q+9Kuf6+G+r19"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:CMYRXdxuslRniTv8AuBMfiwa+uM=
Content-Language: it
 by: Enrico Maria Giordan - Sun, 31 Dec 2023 11:08 UTC

Both MSC and BCC CLANG have a very very fast C compile mode that uses
multicore CPU (-MP with MSC and --jobs=0 -output-dir. with BCC CLANG).
That is wonderful but it works if there is only one compiler run for
more that one C modules. Unfortunately our build system seems to invoke
the compiler for each C module. I wonder if it could be possible to
change this and compile more C modules with one single compiler run.
This way the whole build operation would be much much faster. What do
you think?

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: Multicore compile mode

<1095cc89-78cf-43e0-8770-e2b705109e3bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18245&group=comp.lang.xharbour#18245

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:2621:b0:781:8956:f2a3 with SMTP id z33-20020a05620a262100b007818956f2a3mr35021qko.11.1704030804514;
Sun, 31 Dec 2023 05:53:24 -0800 (PST)
X-Received: by 2002:a05:6870:d8d1:b0:203:8b03:47fc with SMTP id
of17-20020a056870d8d100b002038b0347fcmr1765951oac.0.1704030804320; Sun, 31
Dec 2023 05:53:24 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Sun, 31 Dec 2023 05:53:24 -0800 (PST)
In-Reply-To: <umri3m$1mvis$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:15df:c8df:d0df:7771:5365:f76b;
posting-account=MVjzhQoAAAC9p_5zLm3q76BQ_cMWZzZC
NNTP-Posting-Host: 2600:1700:15df:c8df:d0df:7771:5365:f76b
References: <umri3m$1mvis$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1095cc89-78cf-43e0-8770-e2b705109e3bn@googlegroups.com>
Subject: Re: Multicore compile mode
From: turkeyheadedmutha@gmail.com (Dlzc)
Injection-Date: Sun, 31 Dec 2023 13:53:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 27
 by: Dlzc - Sun, 31 Dec 2023 13:53 UTC

Dear Enrico:

On Sunday, December 31, 2023 at 5:08:42 AM UTC-6, Enrico Maria Giordano wrote:
> Both MSC and BCC CLANG have a very very fast C compile mode that uses
> multicore CPU (-MP with MSC and --jobs=0 -output-dir. with BCC CLANG).
> That is wonderful but it works if there is only one compiler run for
> more that one C modules. Unfortunately our build system seems to invoke
> the compiler for each C module. I wonder if it could be possible to
> change this and compile more C modules with one single compiler run.
> This way the whole build operation would be much much faster. What do
> you think?

I think you have done miracles here, and can walk on water on a really calm day.

Honestly, how many times does "Joe Programmer" compile the entire source, and how many people have hundreds of thousands of lines of xBase / assembly code to compile "clean" every time. "Pearls before swine" comes to mind. Your effort will be for your edification, others will likely notice no significant difference.

And of course I worry about dependency, what if process #2 needs the results of process #4 before it is done? But this is compiling, not linking...

David A. Smith

Re: Multicore compile mode

<umrtoe$1oi8m$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18246&group=comp.lang.xharbour#18246

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: Multicore compile mode
Date: Sun, 31 Dec 2023 15:27:27 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <umrtoe$1oi8m$1@dont-email.me>
References: <umri3m$1mvis$1@dont-email.me>
<1095cc89-78cf-43e0-8770-e2b705109e3bn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 31 Dec 2023 14:27:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f9f47974488cb050ac8579d07a5171c6";
logging-data="1853718"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+W8bviU+QFyD3dYZcc8kVp"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:fAjjOjDMyMcXknFSquQCktmh//I=
In-Reply-To: <1095cc89-78cf-43e0-8770-e2b705109e3bn@googlegroups.com>
Content-Language: it
 by: Enrico Maria Giordan - Sun, 31 Dec 2023 14:27 UTC

Il 31/12/2023 14:53, Dlzc ha scritto:

> Honestly, how many times does "Joe Programmer" compile the entire source, and how many people have hundreds of thousands of lines of xBase / assembly code to compile "clean" every time. "Pearls before swine" comes to mind. Your effort will be for your edification, others will likely notice no significant difference.

You have a point. I only asked how difficult it would be.

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor