Hi...
Is there any way to declare large size of array?
example:
char arr[200*1024];//200kb
Thanks
For specific limits of the compiler you're using, look in the Manual; eg,
www.keil.com/.../armccref_babdfdbb.htm
Not as an automatic variable. use static or externally linked variables, assuming you have enough RAM. Note that an LPC2468/78 has only 98 KB internal RAM...
"Not as an automatic variable."
Surely that just depends upon the size of the stack you've allocated, which (of course) would be limited to the amount of physical storage.
Not that I'd recommend having such a large stack.
const char arr[200*1024]; //200kb
If it is a constant array, it can be put into internal flash with the keyword const.
Why not?
It's probably not a good idea, but I don't see any particular reason that would prevent it - if you really wanted to...