Embedded Design Handbook

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

7.2.4.1. Analyzing the Problem

The easiest way to analyze your application's code footprint is to use the GNU Binary Utilities tool nios2-elf-size. This tool analyzes your compiled .elf binary file and reports the total size of your application, as well as the subtotals for the .text, .data, and .bss code sections. The example below shows a nios2-elf-size command response.

Example Use of nios2-elf-size Command

> nios2-elf-size -d application.elf
text data bss dec hex filename
203412 8288 4936 216636 34e3c application.elf