4.3.4.9 How Can I Define a Large Array?

With dsPIC33C/E/F and dsPIC30F devices, 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:

Non-Auto Variable Allocation and Access - dsPIC33C/E/F and dsPIC30F Devices Only [DD], “Non-Auto Variable Size Limits”.