Re: How to determine if running on a 32 or 64 bits kernel ?
- From: laurent.charmet@xxxxxxxxx
- Date: Fri, 15 Feb 2008 06:00:44 -0800 (PST)
I probably not well exposed my need, but I have a small soft who run
on many machine/os (aix, hpux, irix, linux, bsd/mac, tru64,
win32, ...). And it display system info (memory, swap, cpu name, cpu
freq, number of cpu, os name), compilation option, ILP.
example:
E:\FF\Bin>tina_bench -bench info
-------------- Host name: grossebaf -----------
Version: 4.2.0 SP0 patch 2998 Build 7 (Feb 15 2008)
OS name=Windows Server 2003, OS release=Service Pack 2, OS
version=5.2.3790, Architecture name=Intel
2 X Intel(R) Pentium(R) 4 CPU 2.80GHz @ 2793 Mhz
Mem: 1024 MB, Swap: 1450 MB
Kernel=32 bits, Software=32 bits, Endian=little-endian, Data
Model=ILP32
Sorry if it's cut&paste from my wintel office PC lol !
And for the last time, uname is NOT the solution:
uname -m on a Linux on powerpc give me PPC64. It's a 64 bits OS/
kernel ? NO ! it's a 32 bits because all system binaries are 32 bits
ELF
It's incredible that it's impossible to determine if os/kernel is 32
or 64 bits (or 128 !) with a small call.
Thx for all who have try to help me.
Regards
.
- Follow-Ups:
- Re: How to determine if running on a 32 or 64 bits kernel ?
- From: phil-news-nospam
- Re: How to determine if running on a 32 or 64 bits kernel ?
- From: Chris Friesen
- Re: How to determine if running on a 32 or 64 bits kernel ?
- References:
- How to determine if running on a 32 or 64 bits kernel ?
- From: laurent . charmet
- Re: How to determine if running on a 32 or 64 bits kernel ?
- From: Chris Friesen
- Re: How to determine if running on a 32 or 64 bits kernel ?
- From: laurent . charmet
- Re: How to determine if running on a 32 or 64 bits kernel ?
- From: phil-news-nospam
- Re: How to determine if running on a 32 or 64 bits kernel ?
- From: Joe Beanfish
- How to determine if running on a 32 or 64 bits kernel ?
- Prev by Date: a question on an error of building 2.6.24.2
- Next by Date: Re: How to determine if running on a 32 or 64 bits kernel ?
- Previous by thread: Re: How to determine if running on a 32 or 64 bits kernel ?
- Next by thread: Re: How to determine if running on a 32 or 64 bits kernel ?
- Index(es):
Relevant Pages
|