4.3.4.9 How Can I Define a Large Array?

By default, arrays can occupy up to 32K of memory. If you need 32K of memory or more, you can use the compiler option -mlarge-arrays, remembering that there will be a memory cost. For more on the option, see the following section of this user’s guide:

11.2.2 Non-Auto Variable Allocation and Access, “Non-Auto Variable Size Limits”.