Page 1 of 1

Memory usage & availability with arrays

Posted: Mon Jul 04, 2016 4:55 pm
by Mschmalenbach
I am wondering what the maximum size of arrays can be?
Is there a way to determine at run time, how much memory is available for use by user variables?

Related to the above, is there anyway to create dynamic linked lists without having to guess at maximum size of the list and dimensioning arrays at the start of running a programme to handle this guess at max length? A major use case for linked lists is that you don't ever know for sure how big the list will get...

Re: Memory usage & availability with arrays

Posted: Mon Jul 04, 2016 6:06 pm
by Mr. Kibernetik
In iOS there is no internal memory limit or any kind of safe memory requirements. Any app either works or crashes because it cannot predict or detect memory overflow. This is why smart BASIC also has no such kind of limits.
The only suggestion from Apple to developers is to use as less memory as possible.