Re: how to create an array for 15000 integers?

Richard Bos a écrit :
jacob navia <jacob@xxxxxxxxxxxxxxxx> wrote:

CBFalconer wrote:

jacob navia wrote:

Richard Bos wrote:

Tell that to the MS-DOS program that's still running the back-end
of our A2 full-colour scanner.

USING MS-DOS programs, and even developing embedded software in

This is more likely to produce good habits, assuming an appropriate
C compiler system, than using a non-standard systems which
promulgates various non-portable extensions, and doesn't provide an
easy and obvious way to inhibit all of them. In particular the
DJGPP system will do just fine under DOS.

Mmmm... grasping the difference between the tiny/compact/medium/large
"memory models", making the difference between near and far pointers,

You make it more and more obvious that your experience with advanced
MS-DOS C implementations - DJGPP, in particular - is limited to having
once stood downwind of one.
For your futile information, none of what you mention need be used if
you compile with DJGPP.


This thread (I repeat) was about MIRACL C.


I am referring to THAT environment guys, and I do not care
about the wonderful DJGPP since the original poster
doesn't use it!

I knew everything about DOS extenders, when I used them.
I have forgotten everything about thme since I do not use
them any more. But this is off topic for this thread.

To refresh your minds here is the original question I
was answering to:

I need to do an array with around 15000 integers in it.
I have declared it as unsigned letter[13000];
But the compiler is saying that this is too much.
How can I create an array for 15000 integers?

I am using "Miracle C compiler".

This is the error i am recieving:

"c:\documents and settings\david\desktop\asdasdasdasdasdasdasdad22.c:
line 6: too many locals declared
'unsigned letter[15000]'
aborting compile"


MANY problems like this will appear when you use PLAIN OLD MSDOS
as this user is seeing. Those questions are difficult to
answer for a beginner so I recommended a modern environment where
those problems do not appear immediately.

This problems WILL appear eventually since if you replace 15000
with 15000000000 then the 32 bit implementation will
have the same problem, but when the student needs
15000000000 then it is (hopefully) more advanced :-)