Re: Diff b/w 32bit & 64-bit

Måns Rullgård (mru@users.sourceforge.net)
01 Jul 2002 21:44:13 +0200


"Mohamed Ghouse , Gurgaon" <MohamedG@ggn.hcltech.com> writes:

> Hello All
> I am working on a Driver.
> Considering the processor 2 B Intel's x86,
> can some one enlighten me with the differences of Linux on a 64-bit
> processor & a 32-Bit processor.

For Alpha: sizeof(int) == 4, sizeof(long) == 8, sizeof(void *) == 8
For intel: sizeof(int) == 4, sizeof(long) == 4, sizeof(void *) == 8

The most common mistake is trying to stuff a pointer into an
int. Don't do that.

-- 
Måns Rullgård
mru@users.sf.net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/