Large Arrays Using A 16 Bit Compiler

Idea and code exchange. Porting and new development talk here!

Moderator: Mod Squad

Post Reply
User avatar
dspain
Posts: 2102
Joined: Sun May 07, 2006 10:38 pm
Location: richmond,virginia
Contact:

Large Arrays Using A 16 Bit Compiler

Post 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?

Post Reply