[maemo-developers] [maemo-developers] Re: Tinymail using mmap() gets killed by the kernel of the device

From: Eero Tamminen eero.tamminen at movial.fi
Date: Fri Jul 14 14:12:00 EEST 2006
Hi,

> I know I had to use some guint32's, maybe those are differently written
> to the file on ARM?

On ARM memory accesses have to be aligned (e.g. long = 4 bytes,
so long accesses have to be aligned to 4 bytes).

AFAIK ANSI-C standard guarantees that structure members are always in
the same order (needed for NFS/RPC from the 80's I think :)), but
compiler will align the structure sizes.


	- Eero


More information about the maemo-developers mailing list