> 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 k
On Mon, 27 Nov 2000, Chad Schwartz wrote:
> int main(void) {
> printf("Size of an unsigned long is %d bytes\n",sizeof(unsigned long));
> return(0);
> }
>
> That simple program will tell you that an unsigned long is 4 bytes, or 8
> bytes.
>
> It is then a safe assumption - that if yo
On Mon, 27 Nov 2000 07:36:22 -0600 (CST),
Chad Schwartz <[EMAIL PROTECTED]> wrote:
>int main(void) {
> printf("Size of an unsigned long is %d bytes\n",sizeof(unsigned long));
> return(0);
>}
>
>That simple program will tell you that an unsigned long is 4 bytes, or 8
>bytes.
>
>It is t
int main(void) {
printf("Size of an unsigned long is %d bytes\n",sizeof(unsigned long));
return(0);
}
That simple program will tell you that an unsigned long is 4 bytes, or 8
bytes.
It is then a safe assumption - that if you get back '8', that you're
running a 64bit kernel, on a
Hi!
> > Can't I run a i386 kernel on a ia64 machine? I know something like this
> > from HP-UX. You can choose between a 32 and a 64 bit kernel when
> > installing, so knowing that you have a 64 bit capable machine does not
> > say that you have a 64 bit kernel.
> > And I want to have the kernel
On Wed, Nov 22, 2000 at 10:46:35AM +0100, 64738 wrote:
> uname -m tells me the hardware type of the machine. Is this determined while
> booting or is this the architecture I choose during 'make config'?
Mainly chosen during "make config".
Processor info you see at /proc/cpuinfo
uname -m tells me the hardware type of the machine. Is this determined while
booting or is this the architecture I choose during 'make config'?
Can't I run a i386 kernel on a ia64 machine? I know something like this from HP-
UX. You can choose between a 32 and a 64 bit kernel when installing, s
On Wed, Nov 22, 2000 at 09:25:46AM +0100, 64738 wrote:
> Hi.
>
> Is there a syscall or something that can tell me whether I'm working on a 32-
> or a 64-bit kernel?
uname(2)
It gives out various strings from which you must then deduce,
what kind of kernel is needed to r
8 matches
Mail list logo