We are trying to port our application from PPC405 to MIPS 4kc
Architecture board.
But we are getting many Address Alignment exceptions while porting.
We have studied that MIPS has lwl, lwr, swl and swr instructions to
address alignment problems.

We wanted to know how to instruct the compiler, to use above special
instructions (instead normal sw and lw ), whenever a UN-ALIGNED address
access is encounterd.

[We have noticed that, attribute_packed uses above instructions. But we
can not use that, as our structure length has to be same for protocol

Our Compiler toolchain is :MIPS32sfgnu
and our ccmips version is :gcc-2.96

Thanks in advance for all your help.