[fpc-devel] NoGlobals branch
Florian Klaempfl
florian at freepascal.org
Thu Aug 12 08:54:45 CEST 2010
Am 12.08.2010 07:42, schrieb Hans-Peter Diettrich:
> Marco van de Voort schrieb:
>> In our previous episode, Hans-Peter Diettrich said:
>>> How would you count an level, when multiple concurrent parser threads
>>> create further threads concurrently?
>>
>> Hmm, I think a producer/consumer system with a queue for modules that
>> can be
>> compiled and N worker threads (specifiable by user)
>
> Your suggestion doesn't solve the problem of level counting, where in
> fact only the first level (main module, started from the commandline) is
> of interest, the exact "depth" of other module processing is of no
> interest.
>
> The observed problem is not the counting itself, but the exact point in
> the workflow, when the compiler should go back into level one (or zero)
> state, indicating "generate final binary for the main module". This is
> not clear from the given code, and led to strange errors in my first test.
When it leaves the procedure compile?
>
> Furthermore we should consider to handle multiple main modules
> (projects), that can be built in one go - since they are all based on
> the same RTL and other standard units, that deserve loading/compiling
> only once.
That's why we've already build units on some OSes where make -j doesn't
work well.
BTW: Could you have a look at the clock/timezone of your PC? Since
yesterday your mails come with wrong times.
More information about the fpc-devel
mailing list