Mail Archives: djgpp-workers/1999/08/09/11:04:56
>> 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 -