There's another post in cbloom blog: http://cbloomrants.blogspot.com/2010...7-decoder.html
Which reminded me about "D2CT" discussion here: http://encode.ru/threads/550-Ultra-f...ll=1#post11005
And this time I even made an actual implementation to test it, but nobody likes it :)
clocks are cpu clocks from rdtsc.
first result is from 2.cpp, with a plain decoding loop,
and second is the result with code generation
Note that IntelC replaced the cpy() with its crazy memcpy
function call, which works faster with SSE2 or whatever it uses,
but it doesn't really count because the same tricks can be
used in generated code too.
[ MSC ]
[ gcc450 ]
[ IC111 ]