[U-Boot] [PATCH v2] arm: Switch to -mno-unaligned-access when supported by the compiler

Wolfgang Denk wd at denx.de
Wed Feb 12 16:51:09 CET 2014


Dear Tom,

In message <20140212142536.GA15819 at bill-the-cat> you wrote:
> 
> No.  The solution is to tell the compiler which optimizations it can,
> and cannot use.  If we stop telling it that native unaligned accesses
> work it won't decide to make use of those optimizations.

Can we do this in such a way that we can be absolutely sure that the
compiler will never break up larger (say 32 bit) accesses into smaller
(say, 2 x 16 bit or 4 x 8 bit or similar) accesses?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A wise person makes his  own  decisions,  a  weak  one  obeys  public
opinion.                                           -- Chinese proverb


More information about the U-Boot mailing list