[GSOC]The relationship between int width, long width, and pointer width(Xiaochen Pan)
Ralf Corsepius
ralf.corsepius at rtems.org
Fri Aug 17 06:56:53 UTC 2012
On 08/16/2012 09:26 PM, Xiaochen Pan wrote:
> Hi there,
>
> Is there any fixed relationship between size of int, long, and pointer?
Well, there is only one safe assumption: sizeof(int) <= sizeof(long).
POSIX and ISOC make further assumption (such as sizeof(int) >= 32bit),
but in practice, on embedded systems these often do not apply.
Ralf
More information about the devel
mailing list