[fpc-devel] NoGlobals branch

Florian Klaempfl florian at freepascal.org
Thu Aug 12 08:51:50 CEST 2010


Am 12.08.2010 00:28, schrieb Hans-Peter Diettrich:
> Florian Klaempfl schrieb:
> 
>>> It is not yet clear, however, whether the
>>> parser or entire modules can be destroyed before the end of compilation
>>> - if memory requirements are of interest at all.
>>
>> I don't think that a parser and a scanner instance will take much memory?
> 
> That depends mostly on the related objects (symbol tables...). It's not
> yet clear to me, what the many tables belong to.

Symtables belong either to modules or procdefs.
> 
> 
>>> Nonetheless many assumptions have to be corrected or specified, like a
>>> compile_level doesn't make sense in a threaded compilation. 
>>
>> Why not?
> 
> How would you count an level, when multiple concurrent parser threads
> create further threads concurrently?

Putting compile level in current_module didn't work? compile_level is
probably an artefact from times when we even didn't have current_module.



More information about the fpc-devel mailing list