Embedded Design Handbook

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

4.1.6.6.1. nios2-elf-size Usage Example

To display the size information for your program, perform the following steps:

  1. Open a Nios® II command shell.
  2. Change to the directory in which your .elf file is located.
  3. In the command shell, type the following command:
    nios2-elf-size <project>.elf

nios2-elf-size Command Usage

$ nios2-elf-size my_project.elf
text data bss dec hex filename
272904 8224 6183420 6464548 62a424 my_project.elf