[fpc-pascal] Question on how to avoid memory trouble

Florian Klaempfl florian at freepascal.org
Mon Feb 12 14:24:42 CET 2007


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.




More information about the fpc-pascal mailing list