delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/26/10:32:53

From: hbs AT informatik DOT uni-kiel DOT de (Henrik Schmidt)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Detecting CPU type and Speed
Date: 26 May 1997 09:21:03 GMT
Organization: Dept. of Computer Science, University of Kiel, FRG
Lines: 22
Message-ID: <5mbklv$q0t@gutemine.informatik.uni-kiel.de>
References: <33810891 DOT 358022513 AT 157 DOT 19 DOT 254 DOT 247> <3381F487 DOT 5F32 AT cs DOT com> <33862f54 DOT 1322786 AT 157 DOT 19 DOT 254 DOT 247>
NNTP-Posting-Host: macbeth.informatik.uni-kiel.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In <33862f54 DOT 1322786 AT 157 DOT 19 DOT 254 DOT 247> kutch AT moop DOT csse DOT muroran-it DOT ac DOT jp (Patrick G. Kutch) writes:


>"John M. Aldrich" <fighteer AT cs DOT com> wrote:

>>Get DJVERIFY v0.33 from
>><ftp://ftp.delorie.com/pub/djgpp/alpha/vrfy033a.zip>, and examine the
>>file 'cpu.c' for examples of detecting both CPU type and presence of an
>>FPU.  

>Thanks!  This works great.  I tired using the _dpmi_get_version() ( or
>something like that) but it kept reporting my computer as geting a 486
>rather than a pentium.

The code works fine for me, but how can I detect the cpu speed ( MHz )

Henrik
-- 
Henrik Schmidt                  Christian-Albrechts-Universitaet zu Kiel
Institut fuer Informatik        +49 (431) 5604 -  81 Fax or 75 Phone
Preusserstr. 1-9                http://www.informatik.uni-kiel.de/~hbs/
24105 Kiel, Germany             email: hbs AT informatik DOT uni-kiel DOT de

- Raw text -


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