Timing of PDP-11 Instructions

Eric J Korpela korpela at ssl.berkeley.edu
Thu Dec 8 19:21:16 CST 2005


Maybe you should port bc to your 11.  (Actually I'm fairly sure ports
already exist.)

Here are your reciprocals.....
----------------------------------------------------------------------
scale=40

define r(x) {
  for (i=1;i<=x;i++) {
    1.0/i
  }
}

r(65535)
-------------------------------------------------------------------------

Of course you really dont need that because you
can just calculate your logs directly.
-------------------------------------------------------------------------
scale=95
l(2)
0.69314718055994530941723212145817656807550013436025525412068000949339362196969471560586332699641
-------------------------------------------------------------------------

The reciprocal calculations take 1.562 seconds in bc on my laptop.  If I'm
translating between benchmarks correctly, that would be about a day on an
11/23.

You didn't want it finished in this lifetime anyway, did you? :)

Eric


More information about the cctalk mailing list