[fpc-devel] parallel compilation support
Peter Vreman
peter at freepascal.org
Mon Sep 15 12:04:17 CEST 2008
>
> On 15 Sep 2008, at 09:52, Marco van de Voort wrote:
>
>> In our previous episode, Jonas Maebe said:
>>>> In our previous episode, Graeme Geldenhuys said:
>>>
>>>>
>>>> Via makefiles yes, and only on directory level.
>>>
>>> It also works at the unit level, e.g. the Darwin rtl. It goes from
>>> 8.6
>>> to 5.3 seconds when adding -j 2 on my MacBook.
>>
>> Yes of course, since the RTL is special in that it has non build unit
>> default.
>
> Build units are the exception rather than the rule under packages as
> well. Most directories under packages are not parallellised themselves
> because no one went through the trouble of adding dependencies for
> individual units.
>
For the a lot of packages the fpmake.pp already contains correct include file and unit
dependencies. If somebody is interested in parallelism he can extend fpmake to use this in calling
the compiler multiple times.
In general a build unit is quicker because it can keep already compiled units in memory.
Peter
Peter
More information about the fpc-devel
mailing list