[fpc-devel] Unit dependencies
Michael Van Canneyt
michael at freepascal.org
Wed Feb 4 19:05:54 CET 2026
On Wed, 4 Feb 2026, Adriaan van Os wrote:
> Michael Van Canneyt via fpc-devel wrote:
>
>>> You are right, of course. What I mean is — is the compiler waiting for
>>> that process to finiish ? It would have to wait before starting the
>>> linking phase, but not before starting compiling other units.
>>
>> It would make the logic quite complex. Not all platforms can handle this,
>> sometimes the internal assembler is used, you have to make sure not to
>> launch 200 assembler processes at once etc.
>> The current approach has the advantage of simplicity.
>>
>> Traditionally, make is used to parallelize (and fpmake supports it).
>
> Yes, I have been thinking in that direction, create a rule where .o depends
> on and is created from .s. But then, you need a hardcoded list of units in
> the Makeffile ?
You could construct that based on the list of .ppu files.
The compiler will always write the .ppu files, and they should match the
assembler files (unless there are units that have no code, but that can be
catered for)
Michael.
More information about the fpc-devel
mailing list