RTEMS Logo

RTEMS 4.7.2 On-Line Library


Code Tuning Parameters Data Element Alignment

PREV UP NEXT Bookshelf RTEMS Porting Guide

9.4.1: Data Element Alignment

The CPU_ALIGNMENT macro should be set to the CPU's worst alignment requirement for data types on a byte boundary. This is typically the alignment requirement for a C double. This alignment does not take into account the requirements for the stack.

The following sets the CPU_ALIGNMENT macro to 8 which indicates that there is a basic C data type for this port which much be aligned to an 8 byte boundary.

#define CPU_ALIGNMENT              8


PREV UP NEXT Bookshelf RTEMS Porting Guide

Copyright © 1988-2004 OAR Corporation