Pickle
Mega GP Mania
Theres a opensource project im trying to port and it appears to have the problem with alignments
An example would be:
CODE
int32_t myvariable = *( int32_t *) mypointer;
It seem some doc's on this "feature" of ARM devices and it appears if use the packed attribute it might behave correctly.
Ive also just come across a GCC item -fpack-struct that might fix the problem, but it will have a high overhead cost. I havnt tried this yet.
The third option is to change all of these casts, but it doesnt look easy. I did the first few but that opene the door to more problems.
Any other options or ideas?
An example would be:
CODE
int32_t myvariable = *( int32_t *) mypointer;
It seem some doc's on this "feature" of ARM devices and it appears if use the packed attribute it might behave correctly.
Ive also just come across a GCC item -fpack-struct that might fix the problem, but it will have a high overhead cost. I havnt tried this yet.
The third option is to change all of these casts, but it doesnt look easy. I did the first few but that opene the door to more problems.
Any other options or ideas?