Re: [fpc-pascal] AnsiStrings and Memory Management

2005-12-15 Thread Florian Klaempfl
Peter Vreman wrote: >>>(astonishing that ShortStrings are slower than AnsiStrings in this >>>example >> >>in delphi). >> >>Not really. Delphi is silently upcasting your shortstrings to AnsiStrings >>in >>the background. You would probably have to recompile the VCL to get around >>this ;-) > > >

Re: [fpc-pascal] Question: OpenOffice and FPC?

2005-12-15 Thread Felipe Monteiro de Carvalho
On 12/15/05, Marc Santhoff <[EMAIL PROTECTED]> wrote: > This is difficult. I'm not aware of all the gory details, but: Besides difficult this is not needed. It is better to translate from the c++ headers. You gain less headache and more portability. A COM binding would be nice, but for other thin

Re: [fpc-pascal] Question: OpenOffice and FPC?

2005-12-15 Thread Marc Santhoff
Am Mittwoch, den 14.12.2005, 09:43 +0100 schrieb Tiziano - Mekar Srl -: > hi, > > Is here someone that knows if there is a way to take control of > Opeoffice with FPC? > > Time ago I made something with Delphi and OpenOffice COM Bridge, it was > an interesting and stimulating experience, mainly b

[fpc-pascal] FastMM4 for fpc

2005-12-15 Thread Adrian Veith
I tried to modify the FastMM4 to work with with fpc. I had no big problems for the non-assembly language version, but with the assembly language version i have the problem, that fpc is allways generating a stack frame, even if i use the {$STACKFRAMES OFF} directive. Is it not possible at the m

Re: [fpc-pascal] First Test of FastMM4 for fpc

2005-12-15 Thread Micha Nelissen
On Thu, 15 Dec 2005 18:21:18 +0100 Adrian Veith <[EMAIL PROTECTED]> wrote: > I have changed the FastMM4 that it seemd to work with fpc now. Here are > the results of my prior tests now with FastMM4 for fpc: How did you fix FastReallocMem? FPC uses a 'var APointer', but delphi doesn't, apparantly

Re: [fpc-pascal] First Test of FastMM4 for fpc

2005-12-15 Thread Florian Klaempfl
Adrian Veith wrote: > Hi, > > I have changed the FastMM4 that it seemd to work with fpc now. Here are > the results of my prior tests now with FastMM4 for fpc: > > Test1: > fpc (standard MM): 3.1 sec - factor = 1.34 > fpc (FastMM4): 3.0 sec - factor = 1.30 > delphi (standard MM): 3.1 sec -

[fpc-pascal] First Test of FastMM4 for fpc

2005-12-15 Thread Adrian Veith
Hi, I have changed the FastMM4 that it seemd to work with fpc now. Here are the results of my prior tests now with FastMM4 for fpc: Test1: fpc (standard MM): 3.1 sec - factor = 1.34 fpc (FastMM4): 3.0 sec - factor = 1.30 delphi (standard MM): 3.1 sec - factor = 1.34 delphi (FastMM4): 2.3

Re: [fpc-pascal] AnsiStrings and Memory Management

2005-12-15 Thread Adrian Veith
Peter Vreman schrieb: (astonishing that ShortStrings are slower than AnsiStrings in this example in delphi). Not really. Delphi is silently upcasting your shortstrings to AnsiStrings in the background. You would probably have to recompile the VCL to get around this ;-) I've commi

Re: [fpc-pascal] AnsiStrings and Memory Management

2005-12-15 Thread Adrian Veith
Florian Klaempfl schrieb: Adrian Veith wrote: Hi, two days ago i posted a comment about my experiences porting our database server to fpc. yesterday i tried to figure out where the speed differences between delphi and fpc come from. At the moment i stuck a little bit, because the results i

Re: [fpc-pascal] FreePascal 2.0.2 available

2005-12-15 Thread Peter Vreman
> Florian Klaempfl wrote: >> Hi, >> >> FPC 2.0.2 is finally available for various platforms. 2.0.2 is mainly a >> bug fix release to 2.0.0 though also some little features were added. >> >> Get FPC 2.0.2 from http://www.freepascal.org/download.html or read the >> whatsnew.txt here: ftp://ftp.freepa