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

Johannes Ruscheinski (ruschein@mail-infomine.ucr.edu)
Mon, 1 Jul 2002 14:45:07 -0700


Also sprach M?ns Rullg?rd:
> "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
^^^^^^^^^^^^^^^^^^^
I don't know where you come up with that. On x86 Linux the size of
any pointer is 4 bytes!
>
> 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/

-- 
Johannes
--
Dr. Johannes Ruscheinski
EMail:    ruschein_AT_infomine.ucr.edu ***          Linux                  ***
Location: science library, room G40    *** The Choice Of A GNU Generation! ***
Phone:    (909) 787-2279

"Faith may be defined briefly as an illogical belief in the occurrence of the improbable... A man full of faith is simply one who has lost (or never had) the capacity for clear and realistic thought. He is not a mere ass: he is actually ill." -- H. L. Mencken - 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/