I get the error "Target memory heap exceeded. Rebuild with .out file with more heap"

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Submitted by Joe on Wed, 08/11/2010 - 02:45 

What is heap and how do I increase heap?

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2016

    Submitted by Anders89 on Wed, 08/11/2010 - 02:59.

    Heap is dynamic memory that is allocated at boot time. VisSim puts buffer storage for interactive JTAG communication in the heap. Also, enabled and custom rate compounds can use heap if there are input and output pins. The maximum heap is set in the Tools > Code Gen... dialog under 'Heap Size'. If you receive the 'Target memory heap exceeded' message, put a larger heap value in the compile dialog and recompile. There is a limited amount of RAM available for stack and heap and you may get a linker error if you exceed the physical RAM limits of the target. In this case, reduce the heap memory.