[fpc-devel] Compiler limitations

Florian Klaempfl florian at freepascal.org
Fri May 9 22:53:45 CEST 2008


Vincent Snijders schrieb:
> Florian Klaempfl schreef:
>> Miklos Cserzo schrieb:
>>>
>>> Hi Folks,
>>>
>>> according the documentation "Arrays are limited to 2 GBytes in size 
>>> in the default processor mode." Is there another mode allowing bigger 
>>> arrays?
>>
>> 64 Bit mode/compiler.
>>
> 
> Except for darwin.
> 
> Except it doesn't work:
> http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi?action=3&run1id=21737&testfileid=2417 

This is operation system dependent also if you can declare static data 
structures of this size. Things like

type
   ta = array[0..$fffffffff] of byte;
var
   p : ^ta;

begin
   new(p);
end.

should work e.g. on linux.



More information about the fpc-devel mailing list