Subject:
|
Re: RCX Firmware speed versus legOS
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Fri, 12 Apr 2002 12:56:08 GMT
|
Viewed:
|
818 times
|
| |
| |
> I was surprized at the wide disparity between 'empty loop' and loop
> with 'reading the sensor'. I suspect there is significant compile time
> code optimization at play here.
Of course you are right. <shame on me>
> I use Hitachi's H8 tool chain and not GCC.
Hm? You don't use the gcc toolchain for the H8 but another compiler? Can
you tell a bit more about your compiler?
I revised my testings without optimizing out the calculation and the empty
loop took 0.82 sec. for 10.000 iterations. Reading the light sensor
increases the needed time by 35%. The Firmware program increased only by
9%, but runs 300 times slover. Mileage will vary, but I think an advantage
of factor 100 or up between a compiled program and a Firmware program can
safely be assumed.
Mike
|
|
Message is in Reply To:
| | Re: RCX Firmware speed versus legOS
|
| "Michael Obenland" <obenland@t-online.de> wrote in message news:GuEtHr.M39@lugnet.com... (...) but only (...) assume (...) I was surprized at the wide disparity between 'empty loop' and loop with 'reading the sensor'. I suspect there is significant (...) (23 years ago, 11-Apr-02, to lugnet.robotics)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|