On Thu, Apr 20, 2006 at 05:18:08PM +0200, Olivier Galibert wrote:
> I need to be able to do unaligned memory accesses to memory in
> big-endian or little-endian mode.  For portability, I'd like to do it
> in pure C, but I'd like the compiler to generate optimal sequences for
> the operations.  Most CPUs that I know of even have special
> instructions designed to speed up part or all of these operations.
> 
> So I'm looking for ways of writing these to-be-inlined elemental
> functions in C that gcc will recognize as such, while still working
> correctly, if more slowly, for other compilers.
> 

bfd does that.


H.J.

Reply via email to