Nios® II Processor Reference Guide

ID 683836
Date 10/22/2020
Document Table of Contents Stack Frame for a Function with Structures Passed By Value

Functions that take struct value arguments still have their first 16 bytes of arguments arriving in registers r4 through r7, just like other functions.

If part of a structure is passed using registers, the function might need to copy the register contents back to the stack. This operation is similar to that required in the variable arguments case as shown in the figure above, Stack Frame Using Variable Arguments.

Did you find the information on this page useful?

Characters remaining:

Feedback Message