home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 3,466 of 4,675   
   Terje Mathisen to Rod Pemberton   
   Re: Fast Fizz Buzz program   
   19 Jul 18 10:51:56   
   
   From: terje.mathisen@nospicedham.tmsw.no   
      
   Rod Pemberton wrote:   
   > For 100 to 1M, for Terje's C version (reworked, completed), I get:   
   > (gcc -Wall -ansi -pedantic -O2)   
   >   
   > :# time ./fizzbuzz > /dev/null   
   >   
   > real	0m0.085s   
   > user	0m0.083s   
   > sys	0m0.001s   
      
   Please don't time that code!   
      
   This is only there to generate an unrolled-by-30 version with no tests   
   or branches.   
      
   Alternatively I could create an unrolled C version, this would be of   
   similar speed (within 20%) of the unrolled asm.   
      
   Terje   
      
   --   
   -    
   "almost all programming can be viewed as an exercise in caching"   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca