Nios II Classic Processor Reference Guide

ID 683620
Date 10/28/2016
Public
Document Table of Contents

7.2. Memory Alignment

Contents in memory are aligned as follows:
  • A function must be aligned to a minimum of 32-bit boundary.
  • The minimum alignment of a data element is its natural size. A data element larger than 32 bits need only be aligned to a 32-bit boundary.
  • Structures, unions, and strings must be aligned to a minimum of 32 bits.
  • Bit fields inside structures are always 32-bit aligned.