Sun WorkShop Compiler C 5.0 User's Guide

-misalign

(SPARC) Informs the compiler that the data in your program is not properly aligned, as in the following code:


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

Thus, very conservative loads and stores must be used for data, one byte at a time. Using this option can cause significant degradation in the performance when you run the program. If you compile and link in separate steps, compiling with the -misalign option requires the option on the link step as well.