Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-12

Array sizes

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Emerson

How big can a FPC array be--both in number of elements and overall size? This question is not addressed in the documentation (that I could find, anyway). I fear that awful ceiling at 64KB that existed in Turbo Pascal. Please tell me it's gone!!

MarkLDE

Unknown author
to Mark Emerson
Mark Emerson wrote
How big can a FPC array be--both in number of elements and overall size? This question is not addressed in the documentation (that I could find, anyway). I fear that awful ceiling at 64KB that existed in Turbo Pascal. Please tell me it's gone!!

It is gone. I believe the theoretical limit is 2Gb, but I'm not sure.

Michael.

Florian Klaempfl
to Unknown author
Show quoted text 11 lines
On Sat, 28 Dec 2002, Mark Emerson wrote: >How big can a FPC array be--both in number of elements and overall size? > This question is not addressed in the documentation (that I could find, >anyway). I fear that awful ceiling at 64KB that existed in Turbo >Pascal. Please tell me it's gone!! It is gone. I believe the theoretical limit is 2Gb, but I'm not sure.

The theoretical limit of the compiler is even 4GB but I don't know any (i386-)OS which supports 4GB for one user process and the code and stack size must be subtracted too.