Message-ID: <3C058630.36DE7D7B@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: uclock() and struct rusage References: <3C03503F DOT E9AE61D3 AT bigfoot DOT com> <3C03C095 DOT AEBDC2EC AT yahoo DOT com> <1438-Tue27Nov2001224303+0200-eliz AT is DOT elta DOT co DOT il> <3C04C3EE DOT A97F7057 AT yahoo DOT com> <9003-Wed28Nov2001195525+0200-eliz AT is DOT elta DOT co DOT il> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 38 Date: Thu, 29 Nov 2001 02:29:17 GMT NNTP-Posting-Host: 12.90.169.124 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1007000957 12.90.169.124 (Thu, 29 Nov 2001 02:29:17 GMT) NNTP-Posting-Date: Thu, 29 Nov 2001 02:29:17 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: > > > From: CBFalconer > > Newsgroups: comp.os.msdos.djgpp > > Date: Wed, 28 Nov 2001 16:41:45 GMT > > > > > > > I expect this is not even portable under W98. I hope to try it > > > > later using the identical compiler, etc., but running on this '486 > > > > system. I expect it will crash with an 'illegal instruction' > > > > failing. > > > > > > What possible cause(s) do you see for the illegal instruction > > > failure? > > > > I left the quote to capture the source in my own sent file. I > > suspect that system is calling some sort of cpu cycle timer that > > exists only in the Pentium. Something like rdtsc?? > > No, uclock doesn't use rdtsc, it uses the system timer chip. So no > illegal instructions should result. > > (The sources of the DJGPP library are freely available, so you really > don't need to speculate.) I bow to your superior knowledge of the system. I did not go after any library sources, and as I said I was speculating. I didn't think the raw timer was accessible under W9x, obviously I was wrong. That sounds sarcastic - it isn't meant to be so. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net) Available for consulting/temporary embedded and systems. (Remove "XXXX" from reply address. yahoo works unmodified) mailto:uce AT ftc DOT gov (for spambots to harvest)