gordon@osiris.cso.uiuc.edu (John Gordon) (07/28/90)
	Hello.  I am having a problem, and I hope someone can help me.
	I am trying to declare a char array that is rather large, and TCC
won't accept it, it says it is too large to fit within available memory.
Bull!  I know for a fact that there is at least 300 or 400K left.  Anyway,
here is the declaration:
		char menu[1200][80];
	By my calculations, this shoud be equal to 96K worth.  I am using
the Huge model, which specifically says that arrays of more than 64K may be
used.
	Any help will be most appreciated.
---
John Gordon
Internet: gordon@osiris.cso.uiuc.edu        #include <disclaimer.h>
          gordon@cerl.cecer.army.mil       #include <clever_saying.h>
GEnie:    j.gordon14                  davem@hpmwtd.HP.COM (Dave McQuate) (07/31/90)
If your declaration is local to a function, it will be allocated from the stack--I don't think the stack may be any larger than 64k. I'm not sure about declaring it as a static (ie global)--it might work that way. I am sure that it may be drawn from the heap as a dynamic array by using farmalloc(), and recycled into the heap with farfree(). Dave McQuate Voice: (707) 577-4585 INTERNET: davem%hpmwtd@hplabs.hp.com UUCP: ...hplabs!hpmwtd!davem