Am 24.09.2013 10:58, schrieb Nikolay Nikolov:
On 24.9.2013 г. 10:42, Michael Schnell wrote:
On 09/22/2013 10:40 PM, wkitt...@windstream.net wrote:
yes, there are still quitet many DOS systems out there... there's
even freeDOS and similar FOSS(?) DOS projects... some of them are
even 32bit and can use all available memory like other OSes of today ;)
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...
Regards,
Sven
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus