On 08/08/2013 22:19, Eric Smith wrote:
I'm curious about your program, and not having an
R3000 handy, I tried
running it on a 4 GHz 64-bit x86 Linux system. What I get is:
$ gcc -o prog prog.c
$ time ./prog >output
real 0m0.056s
user 0m0.052s
sys 0m0.003s
And an output file that is 250000 lines of identical text, all
"32767". I assume that's not the correct output.
On a 150MHz R5000 Indy, using the IRIX C compiler (which is normally a
bit better than GCC on IRIX systems) I get the same output result and
these times:
real 2.47
user 2.35
sys 0.08
I can possibly dig out an R3000 Indigo but it'll be running IRIX 5.3
(IIRC) and I can also run it on an R10k Origin 2000 (with 16 CPUs though
it'll only use one) -- but like Eric I wonder if Sean's code isn't doing
quite what's wanted.
--
Pete Peter Turnbull
Network Manager
University of York