Re: Unaligned attribute

2008-03-20 Thread pluto
20/3/2008, "Jan Hoogerbrugge" <[EMAIL PROTECTED]> napisaƂ/a: >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 su

Re: Unaligned attribute

2008-03-20 Thread Daniel Jacobowitz
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

Unaligned attribute

2008-03-20 Thread Jan Hoogerbrugge
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? Regards, Jan