delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/08/09/11:04:56

Sender: root AT delorie DOT com
Message-ID: <37AEC825.12F4F339@inti.gov.ar>
Date: Mon, 09 Aug 1999 09:23:01 -0300
From: salvador <salvador AT inti DOT gov DOT ar>
Organization: INTI
X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.0.36 i686)
X-Accept-Language: es-AR, en, es
MIME-Version: 1.0
To: Laurynas Biveinis <lauras AT softhome DOT net>, djgpp-workers AT delorie DOT com
Subject: Re: CPU identification (Was: Re: uname -m ?)
Reply-To: djgpp-workers AT delorie DOT com

>> NT defines an environment variable with the CPU ID, so I think the program
>> should first try with it if NT is detected.
>
>I don't have access to NT docs/NT itself. If anybody
>knows, please tell me.

Here are the variables defined by NT 4 for a K6:

PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 5 Model 7 Stepping 0, AuthenticAMD
PROCESSOR_LEVEL=5
PROCESSOR_REVISION=0700

The PROCESSOR_LEVEL seems to be enough to report i586 and similar stuff. I
think that's much more safe. I don't have values for other processors here,
but the PROCESSOR_IDENTIFIER is obviously the result of cpuid instruction.
It also enable users to overwrite the detection.

SET

--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
                    set AT ieee DOT org set-soft AT bigfoot DOT com
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019