On Thu, Mar 20, 2008 at 04:27:42PM +0100, Jan Hoogerbrugge wrote:
> Hi,
> 
> I am looking for a way to specify that data is not aligned and that therefore
> word accesses should be expanded into byte accesses. For example:
> 
> void f(__unaligned int *a)
> {
>   *a = 0;
> }
> 
> Expands into 4 byte stores. Any suggestions on how to implement this?

Try __attribute__((__packed__))?

-- 
Daniel Jacobowitz
CodeSourcery

Reply via email to