Previous: test, Up: Some adders
The three example blocks shown in the previous sections are included in
the distribution (as file examples/adder/adder.th). Executing the
script file demo-adder.scm (via cd examples/adder ; thud -x
demo-adder.scm) runs permute on the above example. Every 100
cycles, a dot is printed. At the end, the event log is displayed.
Here is the latter part of the session log.
19991114 Sun 04:35:00 -- permuting (/test/ 2048 cycles)
.....................
These are the events:
19991114 Sun 04:35:00 -- internals reset
19991114 Sun 04:35:00 -- adding adder.th
19991114 Sun 04:35:00 -- 138.616 msec
19991114 Sun 04:35:00 -- instantiating (3 blks)
19991114 Sun 04:35:00 -- 113.336 msec
19991114 Sun 04:35:00 -- linking (7 instances)
19991114 Sun 04:35:00 -- 378.835 msec
19991114 Sun 04:35:00 -- permuting (/test/ 2048 cycles)
19991114 Sun 04:35:00 -- simulating (2048 cycles)
19991114 Sun 04:35:07 -- 6.289295 sec
19991114 Sun 04:35:07 -- 6.294878 sec
19991114 Sun 04:35:07 -- 3.07 msec/cycle
19991114 Sun 04:35:07 -- 325.34 cycle/sec
You might see different numbers depending on your platform. This data was collected from a 166 MHz Pentium w/ 16Mb RAM running Red Hat Linux 5.1, guile-1.3.4 of 1999-09-18 (anonymous CVS), guile-hobbit-1.3.4, and thud-0.21.