C++ User's Guide

-misalign

SPARC: Permits misaligned data, which would otherwise generate an error, in memory. This is shown in the following code:


char b[100];
int f(int * ar) {
return *(int *) (b +2) + *ar;
}

Very conservative loads and stores must be used for the data, that is, one byte at a time. Using this option can cause significant degradation in performance when you run the program.

Warnings

If possible, do not link aligned and misaligned parts of the program.