Re[2]: [fpc-pascal] Caching a big file on memory

Пётр Косаревский ppkk at mail.ru
Mon Sep 11 20:02:43 CEST 2006


> var
>      a : array[1..100000000] of byte; //100MB

> Operating system is  WinXP SP2. AthlonXP 2000+ and 1.25 GBRam 

Both with 2.1.1 rev. 4609 and 2.0.4rc2:
{$MODE OBJFPC}
var a: array[1..100000000] of byte;
    i: integer;
begin write('('); for i:=1 to 100000000 do a[i]:=a[100000001-i]; writeln(')'); end.

Works allright. (I use "fpc -vlwni -Xs -Xi -Sg -O3rp4" by default.)
WinXP-sp2, Celeron 2.4 GHz.



More information about the fpc-pascal mailing list