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
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
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