Discussion:
Multicore compile mode
(too old to reply)
Enrico Maria Giordano
2023-12-31 11:08:39 UTC
Permalink
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
Dlzc
2023-12-31 13:53:24 UTC
Permalink
Post by Enrico Maria Giordano
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
Enrico Maria Giordano
2023-12-31 14:27:27 UTC
Permalink
Post by Dlzc
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
Loading...