
Big Arrays arrays using B
OB-> Reply to [All ][Big Arrays arrays using B][01-22-95 11:58]
OB-> Original written by [Marcus Mac]
OB-> MM>I am writing a program that uses large arrays 600x600x50, It run
^^^^^^^^^^^^ ^^^^^^^^^^
OB-> MM>perfectly on a unix based system using cc. When I bring the sour
OB-> MM>code home to my pc (16Mb) and try to compile it with Turbo C, th
^^^^^^
OB-> MM>compiler gives the error:
OB-> MM>Array size too large...
OB-> MM>Someone suggest something about have to allocate extended memory
OB-> MM>quite a novice with respect to C, Can someone help me here.
You can't allocate, what you don't have.
OB-> There already are some messages discussing this subject.
OB-> Scan for text 'XMS'
OB-> Good luck.
If the array is the smallest variable size (char), you would
have to have 600*600*50 bytes for just this array and unless my
calculator is wrong, that comes out to 18,000,000 bytes! He just
doesn't have enough RAM on his "16 Mb" system. The scarey thing
is that he used the word array in the plural - "arrays".
* COWDICK 1.00 * If you live long enough, it WILL kill you...