Re: [fpc-pascal] Not specifying the {$H+} degrades performance

2007-03-26 Thread Graeme Geldenhuys
Ah, I see... Thanks for the quick reply. Graeme. On 3/26/07, Jonas Maebe <[EMAIL PROTECTED]> wrote: On 26 mrt 2007, at 12:54, Graeme Geldenhuys wrote: > If I have a .pas unit and forgot to specify the compiler mode line > {$mode objfpc}{$H+} > what does FPC default to? Compiler Mode? Longs

Re: [fpc-pascal] Not specifying the {$H+} degrades performance

2007-03-26 Thread Jonas Maebe
On 26 mrt 2007, at 12:54, Graeme Geldenhuys wrote: If I have a .pas unit and forgot to specify the compiler mode line {$mode objfpc}{$H+} what does FPC default to? Compiler Mode? Longstring or Shortstring? Shortstring. {$h+} is not longstring, but ansistring. After some more testing I rea

[fpc-pascal] Not specifying the {$H+} degrades performance

2007-03-26 Thread Graeme Geldenhuys
Hi, If I have a .pas unit and forgot to specify the compiler mode line {$mode objfpc}{$H+} what does FPC default to? Compiler Mode? Longstring or Shortstring? I wrote a string tokenizer and did some time trials against an old tokenizer I used. First I forgot to include the compiler mode line