[U-Boot] [PATCH] arm: armv7: add compile option -mno-unaligned-access if available

Mike Frysinger vapier at gentoo.org
Thu Jul 19 06:29:23 CEST 2012


On Monday 02 July 2012 12:14:40 Måns Rullgård wrote:
> It's slightly more complicated than that.  Data can be misaligned for a
> variety of reasons:
> 
> 1. Errors in software.
> 2. Specified by a file format or communication protocol.
> 3. Deliberately misaligned by the compiler.
> 
> Misaligned data of type 1 should of course be fixed properly, not worked
> around in any way.

it's also a reliability aspect.  people don't write bug free software, not bug 
free protocols, nor bug free compilers.  when misalignment does happen in the 
field, it's a hell of a lot better if the software continued to execute 
correctly rather than randomly triggered an exception.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120719/aed59442/attachment.pgp>


More information about the U-Boot mailing list