[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: long primitive for memory addresses



On Fri, Jul 04, 2003 at 07:21:36AM -0700, Kirk True wrote:
> x86 platform, why can't 32-bit memory addresses be represented with only an
> int instead? Or is this just to have to change less code for 64-bit
> architectures?

Exactly, less code changes for multiple platform support. Of course, if
the kernel is ever ported to a machine where unsigned long doesn't match
the address space of a process, there is going to be some problems..

-- 
"Nothing says, 'Superpower' like bombing a country that is poor and
hungry." -- Ken Brush

PGP signature