public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] platform detection at run-time
@ 2002-09-25 18:18 Sane_Purushottam
  2002-09-25 18:22 ` Don Dugger
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: Sane_Purushottam @ 2002-09-25 18:18 UTC (permalink / raw)
  To: linux-ia64

I have a linux application running on 32-bit machines. Due to some
third-party limitations, we cannot build this application on 64-bit machines
natively. Thus we'll be using the '32-bit compatibility mode'.

For some application specific reasons, I need to be able to determine at
run-time whether the application is running on a 32-bit or a 64-bit
platform.

What I have found is that there's no reliable way for the application to
determine whether it's running on a 64-bit machine. I use info obtained from
/proc/cpuinfo (more specifically family field) to determine the platform.
However this is not standard. On Redhat 7.1 (lk 2.4.3-12) family value is
set to IA-64 while on Redhat 7.2 (lk 2.4.9-34) this field is set to
'Itanium'.

What is the preferred method to determine the platform at run time ?? Are
these values likely to change (after I change my code to handle this) ????

Nitin Sane
sane_purushottam@emc.com
(508) 382-7319



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2002-09-26  4:32 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-25 18:18 [Linux-ia64] platform detection at run-time Sane_Purushottam
2002-09-25 18:22 ` Don Dugger
2002-09-25 18:35 ` Nathan Straz
2002-09-25 18:46 ` David Mosberger
2002-09-25 18:48 ` David Mosberger
2002-09-25 18:57 ` Nathan Straz
2002-09-25 19:00 ` Joe Griffin
2002-09-25 19:05 ` David Mosberger
2002-09-25 19:28 ` Van Maren, Kevin
2002-09-25 19:33 ` Sane_Purushottam
2002-09-25 19:40 ` Wichmann, Mats D
2002-09-25 19:48 ` David Mosberger
2002-09-25 20:45 ` Grant Grundler
2002-09-25 21:07 ` Don Dugger
2002-09-25 21:25 ` Sane_Purushottam
2002-09-25 23:29 ` David Mosberger
2002-09-26  4:32 ` Don Dugger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox