Is sizeof(void *) ever != sizeof(unsigned long)?
Quoted 18 lines · --- Robert Love
But that is not true, actually. Nothing in C or anywhere else says that
the long type has to be the size of a GPR. Specifically in Linux, the
SPARC64 user-space ABI has a 32-bit long type despite being a 64-bit
architecture--in other words, SPARC64 has a 32-bit user-space even
though it is a 64-bit architecture.In the kernel, however, we have the ABI such that both pointers and
longs are the same size, generally the size of the GPR. But there is a
difference between physical requirements, C requirements, the user-space
ABI, and the kernel ABI.
Quoted 4 lines
By definition (the Linux kernel ABI) they _are_
equal in size to each
other.
Thanks for this explanation, now I got clear view abt that.
Fawad Lateef
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>