Re: [fpc-pascal] Maybe one stupid question

2009-01-22 Thread leledumbo
Perhaps bugs in the optimizer, I usually get MUCH faster code with optimization. Well... depending on the code. You can try examining the assembler output (-a compiler switch, -alnrt for more informative output). -- View this message in context: http://www.nabble.com/Maybe-one-stupid-question-tp

[fpc-pascal] Maybe one stupid question

2009-01-22 Thread JoshyFun
Hello FPC-Pascal, I'm using FPC 2.2.2 running over WinXP SP2. Are there any technical reasons that expains that a program runs faster using all checks ( I/O, Range, Overflow, Stack and Verify calls ) with optimization level 1 and using heaptrace, than the same one compiled without any check, optim

Re: [fpc-pascal] cross platform version of IsCharAlpha()

2009-01-22 Thread Paul Ishenin
Graeme Geldenhuys wrote: function IsCharAlpha(AChar: Char): Boolean; begin // This is very primitive and doesn't take special chars or unicode into // consideration. if AChar in ['a'..'z', 'A'..'Z'] then Result := True else Result := False; end; Anybody got a better Object Pasca