Re: Kernel bits

Chad Schwartz
2000-11-27T14:41:15Z

> No, that only tells you the size of a long under the compiler you used.
> If you are on an Intel IA64 (64 bit kernel) but you compile with gcc
> for ix86 (32 bit userspace) then sizeof(long) is 4. IA64 runs both
> native and ix86 code, sizeof(any userspace field) tells you nothing
> about the kernel.

Doh. Well, it *DOES* tell you if you're running 64bit - if you're running
the 64bit compiler. :)

It was a simple check. Obviously, its not perfect. (In the cases you
pointed out, for instance, we'd report the wrong thing.)

Chad