Embedded Design Handbook

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

5.3.6.2. Implementation in Nios® II Assembly Language

To keep the code size as small as possible, write the small boot copier example in Nios® II assembly language. All the variables that the boot copier uses are implemented in Nios® II processor general purpose registers, not in RAM. Therefore, the boot copier itself has no data memory requirement. The small boot copier has no .rodata, .rwdata, stack, or heap section. Because it does not require data memory, this boot copier can easily be relocated anywhere in memory and can even run directly from non-volatile flash memory without setting up a data memory section.