Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

4.1.3.3. nios2-stackreport

This command returns a brief report on the amount of memory still available for stack and heap from your project's .elf file.

This command does not help you to determine the amount of stack or heap space your code consumes during runtime, but it does tell you how much space your code has to work in.

nios2-stackreport Command and Response

$ nios2-stackreport <your project>.elf
Info: (<your project>.elf) 6312 KBytes program size (code + initialized data).
Info: 				10070 KBytes free for stack + heap.