Nios® V Processor Software Developer Handbook

ID 743810
Date 2/14/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

12.2.1.5. niosv-stack-report

Synopsis

niosv-stack-report [OPTION] <ELF FILE>

Description

Reports memory available for stack and heap from an .elf file.

Usage

#Report stack and heap memory from generated ELF file
niosv-stack-report [OPTIONS] app.elf

Example: niosv-stack-report app.elf
Result:
app.elf
* 438.85 KB - Program size (code + initialized data).
* 1510.36 KB - Free for stack + heap

Options

Options Description
-p PREFIX, --prefix PREFIX
  • Optional.
  • Uses a different compiler prefix for running <prefix>-nm and prefix>-size.
  • <prefix> defaults to riscv-none-embed if not specified.
-d, --debug
  • Optional.
  • Increases output verbosity.
-h, --help
  • Optional.
  • Displays help for this tool