delorie.com/archives/browse.cgi | search |
From: | mat_carter AT bio-rad DOT com |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Encoding Pentium RDTSC Instruction |
Date: | 20 Nov 1996 10:26:37 GMT |
Organization: | NETCOM Network Operations |
Lines: | 7 |
Message-ID: | <56umct$hh5@news2.noc.netcom.net> |
Reply-To: | mat_carter AT bio-rad DOT com |
NNTP-Posting-Host: | mcarter.uk.bio-rad.com |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |