I have fixed the error by replacing: > Uint32 __attribute__((aligned(16))) cccc[4]; with: Uint32 __attribute__((aligned(16))) ccc[5]; Uint32 *cccc = ccc+1; After this it falls in other place: SDL_Rect real_srcrect = { 0, 0, 0, 0 }; The same code on C works fine. I really don't know what to do..