[fpc-pascal] Question on how to avoid memory trouble
George Lober
glober at telus.net
Mon Feb 12 20:27:48 CET 2007
Florian Klaempfl wrote:
> Helmut Hartl schrieb:
>
>> > >FastMM is open source, has anyone ported it to FPC?
>> >
>> > There are users that have got FastMM working with FPC. But
>> > it is not needed. The standard FPC heap manager is for
>> > single-threaded applications as fast as FastMM.
>>
>> A little bit shortsighted (IMHO),as "everyone seriously concerning
>> performance"
>>
>
> Well, depending on FastMM is short sight too because FastMM is using
> heavily assembler, so it is i386 only.
>
> I think a better approach is to extend the current fpc memory manager to
> perform better in multithreaded environments.
>
>
>> is concentrating on multithreaded, multiprocessor applications, wich are
>> lock and waitfree, right now.
>>
>
> Well, the lockless multithreaded memory managers are a myth. Atomic
> exchange operations take a also a lot of time and are locked by the cpu
> as well.
>
>
>> Is there anyone around who is using FastMM in FPC?
>> A guide what is necessary to get FastMM working with FPC
>> is much appreciated.
>>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>
One nice side benefit of FastMM is that it automatically lets you know
of memory leaks with no fuss and bother on the programmers part.
--
George
More information about the fpc-pascal
mailing list