To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 352
351  |  353
Subject: 
Re: Speed of RCX interpreting bytecodes: slow
Newsgroups: 
lugnet.robotics.rcx
Date: 
Wed, 5 Jan 2000 03:38:36 GMT
Viewed: 
1514 times
  
Its been a long time since I looked at the firmware in detail, but is it
possible that the bytecode interpreter is driven from one of the timer
chains?  If this was the case, it wouldn't matter if the CPU could execute
the bytecode in 200 cycles...it would still just wait for the next tick
before executing another bytecode.

Dave Baum

In article <Fnu3oH.L7p@lugnet.com>, kekoa@pixel.Stanford.EDU (Kekoa
Proudfoot) wrote:

Ben Jackson <ben@ben.com> wrote:
While working on the barcode scanner I decided to see just how fast the
RCX could loop.  A simple NQC program can do about 1000 counter loop
iterations in about 100 ticks, or 1 iteration/ms.  This is shockingly
slow.  The native H8/329 is clocked at 16Mhz and claims to do simple adds
in 2 clocks...

What is in a "counter loop iteration" ?  Please share the NQC program you
used to measure this with us.  I fail to believe that a simple loop runs
this slow.  16000 cycles per loop iteration does not sound right to me.

-Kekoa

--
reply to: dbaum at enteract dot com



Message has 2 Replies:
  Re: Speed of RCX interpreting bytecodes: slow
 
(...) Hmm. If so, an interesting option for a theoretical replacement-but- compatible firmware to have would be the ability to do things as fast as possible. (Of course, it'd have to be an option, since it's possible that some badly-designed code (...) (25 years ago, 5-Jan-00, to lugnet.robotics.rcx)
  Re: Speed of RCX interpreting bytecodes: slow
 
(...) I'm pretty sure this is not the case. The interpreter constantly runs the "execute bytecode" function if it is sitting idle. -Kekoa (25 years ago, 5-Jan-00, to lugnet.robotics.rcx)

Message is in Reply To:
  Re: Speed of RCX interpreting bytecodes: slow
 
(...) What is in a "counter loop iteration" ? Please share the NQC program you used to measure this with us. I fail to believe that a simple loop runs this slow. 16000 cycles per loop iteration does not sound right to me. -Kekoa (25 years ago, 4-Jan-00, to lugnet.robotics.rcx)

11 Messages in This Thread:






Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR