HELP NEEDED to declare very large global array

Michel Biedermann MICHELBI at oregon.uoregon.edu
Tue Apr 10 09:00:50 AEST 1990


I am having problems declaring the following array as a global variable
using QuickC 2.0:

#define MAX_CHANNELS 6
#define MAX_SAMPLES 3000

float data[MAX_CHANNELS][MAX_SAMPLES];

void main(void)
{
/* use data[][] here */
}

In the interest of making this a good learning experience, please give me
both solutions (since my array is > 64K):
	1.  Using a small or medium memory model.
	2.  Using a huge memory model.

Thank you very much for any help.

Michel Biedermann          michelbi at oregon.uoregon.edu
U. of Oregon



More information about the Comp.lang.c mailing list