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

From: Måns Rullgård (mru@users.sourceforge.net)
Date: Mon Jul 01 2002 - 14:44:13 EST


"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/



This archive was generated by hypermail 2b29 : Sun Jul 07 2002 - 22:00:08 EST