This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Unaligned attribute


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]