Page 1 of 1

Large Arrays Using A 16 Bit Compiler

Posted: Fri May 17, 2013 1:58 am
by dspain
now this is not something that was typically done, but it can be done and if anyone can offer some insight that would be great.

the compiler is Borland C++ 4.5.2

i need to use arrays larger than 256x256

an example of my array:

i need to store room descriptions for a game, there are a maximum of 2500 room descriptions each no more than 1025 characters.

so:

#define MAXDSC 2500
#define DSCLEN 1025
char desc[MAXDSC][DSCLEN];

as we all know 16 bit compiler errors "Array size too large"

any ideas?