[Lazarus] Why development remains constant for msdos?

Nikolay Nikolov nickysn at gmail.com
Tue Sep 24 19:34:36 CEST 2013


On 09/24/2013 12:17 PM, Sven Barth wrote:
> Am 24.09.2013 10:58, schrieb Nikolay Nikolov:
>> On 24.9.2013 г. 10:42, Michael Schnell wrote:
>>>
>>> How does fpc for DOS handle TThread ?
>>>
>>> Just curious...
>>
>> When you try to create a thread, your program terminates and writes a 
>> message that threading is not supported. Things like threadvar work 
>> in the sense that they compile and work, but since you don't have 
>> threads, they behave just like regular vars. Underneath they still 
>> generate the extra bloat needed for threadvars (e.g. calls to 
>> FPC_THREADVAR_RELOCATE, which are probably stubs and do nothing in 
>> the rtl)
> Maybe we should adjust the compiler that it treats threadvars really 
> like normal vars if the target does not support threading...

Yes, that's a good idea and in fact I was planning to do it, since it'll 
save precious space in the i8086 small and tiny memory models (and 
perhaps the embedded targets also), but I still haven't done it, due to 
other things with higher priority.

Nikolay




More information about the Lazarus mailing list