www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/21/13:44:21

From: ovek AT arcticnet DOT no (Ove Kaaven)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Encoding Pentium RDTSC Instruction
Date: Thu, 21 Nov 1996 07:39:57 GMT
Organization: Vplan Programvare AS
Lines: 19
Message-ID: <57110j$an9@troll.powertech.no>
References: <56umct$hh5 AT news2 DOT noc DOT netcom DOT net> <32935A5C DOT 33A8 AT skygames DOT com>
NNTP-Posting-Host: alwayscold.darkness.arcticnet.no
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Kevin Baca <kbaca AT skygames DOT com> wrote:

>mat_carter AT bio-rad DOT com wrote:
>> 
>> I'm trying to use the Pentium RDTSC instruction to time my code, but the GNU
>> assembler (AS.EXE) tells me it's an unknown 386 instruction.  I always compile
>> via GCC using the -m486 option but if I use -m586 it chucks an error.
>> 
>> Do I need a patch or the latest release of DJGPP (preferably not all of it - again)
>> or can someone tell me how to code up the instruction so that it can be passed
>> thru to AS.EXE via inline asm or an x.S file - I guess in binary format?

>as does not recognize several x86 instructions.  You must code their
>byte codes explicitly.

True for djgpp v2.0. But the as from binutils 2.7 (djgpp v2.01) now
recognizes Pentium instructions.


- Raw text -


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