[fpc-devel] x86_64 Optimizer Overhaul

Jonas Maebe jonas at freepascal.org
Sat Dec 15 20:42:55 CET 2018


On 15/12/18 19:37, Ben Grasset wrote:
> Should this really be surprising at all though? To me it seems obvious 
> why that would be the case. Delphi the compiler (not the IDE) is not 
> written in Pascal. It's written in a combination of C and C++. Thus, I 
> would imagine that Delphi's *default* internal memory management system 
> is more along the lines of what is done in FPC's cmem unit, which is 
> well known to be objectively faster than FPC's default memory manager

As Martok wrote, Delphi's memory manager is FastMM. That one is written 
in assembler, afaik. Additionally, cmem is mainly faster (on Unix 
platforms) if you reallocate many (large) memory blocks, which is 
related to what Florian talked about earlier.

> as 
> FPC's default memory manager simply does not aim to be fast but rather 
> to use the smallest amount of memory possible.

That is incorrect.


Jonas



More information about the fpc-devel mailing list