Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Stack and Heap Memory Check

I have a software requirement to check all memory. This memory includes the stack and heap in SDRAM, and this is my dilema. I realize I need to write this in Assembly and lock out interupts when I do this, but does anyone have guidance on this subject?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    There is a new option in nios2 5.1, which will help,

    -mstack-check

    Read the nios2 doc gnu-tools gcc nios2 options

    (however, this is not yet ported to buildroot.)