Re[2]: Caching a big file on memory

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re[2]: Caching a big file on memory

Пётр Косаревский
> 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.
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Re[2]: Caching a big file on memory

Eduardo Morras
At 20:02 11/09/2006, you wrote:

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

Yes, after make a clean directory and copy there *.pas files, now
works, don't know what happened.

Sorry for your time, and thanks Jonas and Ppkk

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal