From: Pedro A. <ped...@po...> - 2008-01-20 17:38:32
|
pgeorges wrote: > I ported this program to evc4, and I get the same type of crash. So > cegcc is ok, but I don't understand why this code works well with gcc on > x86, and why the crash only occurs with optimisation on. > Sounds a lot like you're having some alignment problems. x86 is happy dereferencing pointers into unaligned data, but ARM does not. I would look for stuff like *(int*)char_ptr = xxxx, to start with. -- Pedro Alves |