Memory usage & availability with arrays

Post Reply
Mschmalenbach
Posts: 1
Joined: Mon Jul 04, 2016 4:39 pm
Flag: Great Britain

Memory usage & availability with arrays

Post 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...

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Memory usage & availability with arrays

Post 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.

Post Reply