[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: alignment errors on armel: what to do?



> char f[4];
> ...
> any idea why gcc would lay out the memory differently for armel than for
> i386?  i haven't tried it on the old arm architecture.

The alignment of "f" is entirely arbitrary.

It could be effected by any number of things, including but not limited to 
where other variables happen to be placed, ABI differences, how aggressively 
the compiler chooses speed over size, exact compiler versions and, if you're 
really unlucky, phase of the moon.

Paul


Reply to: