FastMM4 icon indicating copy to clipboard operation
FastMM4 copied to clipboard

FPC support??

Open shobits1 opened this issue 8 years ago • 6 comments

Browsing the FastMM4.pas, I found many entries related to FPC (32bit and 64bit); yet the readme only mentions the Delphi4+ and BC4+; so is FastMM4 FPC ready? what's limitation, and how it fares compared to FPC internal memory manager. how to use it.

shobits1 avatar Aug 25 '16 19:08 shobits1

FPC support for OS X and Linux (i386 and x86-64) was added in October 2015 by Zoë Peterson. I have not tested it myself, but I have not received any reports of bugs either.

pleriche avatar Aug 26 '16 19:08 pleriche

Thanks for the response but, unfortunately it doesn't work under windows; any plan to bring support to FPC for windows.

shobits1 avatar Aug 27 '16 08:08 shobits1

I personally don't have any plans to add support in the short term, but I believe others got it working without too much trouble.

pleriche avatar Aug 27 '16 18:08 pleriche

Hi, I'm compiling a delphi app with FPC (3.0.2) with delphi compatibility mode -MDELPHI and it throws this error:

FastMM4.pas(1573,55) Error: Identifier not found "clib"
FastMM4.pas(1573,60) Error: Illegal expression

I'm guessing it might have something to do with -MDELPHI, but not sure.

Any ideas ? Thanks !

sriccio avatar Apr 25 '17 07:04 sriccio

Okay it's not -MDELPHI

I've made this simple program:

program test;

uses
  FastMM4

begin
  writeln ('Hello, world.')
end.

and compiled it as a normal fpc program

$ fpc test.lpr         
Free Pascal Compiler version 3.0.2 [2017/04/23] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling test.lpr
Compiling FastMM4.pas
FastMM4.pas(1573,55) Error: Identifier not found "clib"
FastMM4.pas(1573,60) Error: Illegal expression
[cropped]

Same error :'(

sriccio avatar Apr 25 '17 07:04 sriccio

I came across this repo today: https://github.com/martok/fpc-mm

edwinyzh avatar Mar 18 '19 05:03 edwinyzh