Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Craig Steiner
08/05/05 10:30
Read: 1105 times
Denver
USA


 
#98887 - Wow!
Responding to: Jan Waclawek's previous message
Jan Waclawek said:
I have prepared a "tester", which compares a result from shifting an arbitrary input value with a reference routine, and, more importantly, counts the instruction cycles of the "tested" shift routine, finds their minimum and maximum and adds them up to a sum (which then divided by 31 gives the average duration).


Wow, Jan, nice effort! While not that terribly important, I thought I might mention that I'm finding that the test program comes up with the correct best, worst, and total cycle count--but it seems to be mistakenly identifying the values of the accumulator for the best and worst case. Not sure why, or maybe I just goofed something up over here.

Also, for what it's worth, I'm seriously considering building an assembler and mini-simulator for the website. Obviously this would allow the website to assemble submissions at the moment they are submitted and, like your test suite, verify that the routine comes up with the right answer and do a performance profile for each possible set of inputs. While this probably isn't the most productive use of my time, the idea has sort of wedged itself into my brain and I think I'm going to have to do it just because it'd be fun. :)

Regards,
Craig Steiner


List of 17 messages in thread
TopicAuthorDate
Code Challenge operational      Craig Steiner      08/03/05 18:09      
   Questions for current challenge ?      Steve M. Taylor      08/04/05 07:20      
      Instruction Cycles?      Andy Neil      08/05/05 08:06      
         best case/worst case      Jan Waclawek      08/05/05 08:30      
            how about 30 instructions      Erik Malund      08/05/05 08:51      
               30 instructions?      Jan Waclawek      08/05/05 09:22      
                  i did count inside loops      Erik Malund      08/08/05 08:07      
            Changed last night      Craig Steiner      08/05/05 10:10      
      Tester/Counter      Jan Waclawek      08/05/05 08:47      
         Wow!      Craig Steiner      08/05/05 10:30      
   The 3 better solutions      Robert Perez      08/04/05 16:02      
   Definition of BEST      Graham Cole      08/05/05 10:24      
      Definition of best      Craig Steiner      08/05/05 10:56      
         Good idea      Graham Cole      08/10/05 06:06      
   pre tags?      Dan Henry      08/06/05 11:15      
      Yes      Craig Steiner      08/06/05 13:56      
         A highlight please      Jerson Fernandes      08/06/05 23:17      

Back to Subject List