News for hackers. Stuff that matters.
Re:Duff's device: do + switch fall-through = loop unrolling by ars on Thursday August 13, 2009 @05:01PM (#761684)
This is no longer useful as an optimization technique (loop unrolling makes things slower these days), but I believe the device get use in state machines, and libraries for making multithreading apps in a single process.
Re:Duff's device: do + switch fall-through = loop unrolling by benhoyt on Thursday August 13, 2009 @05:20PM (#761721)
Yes, for "protothreads", see: http://www.sics.se/~adam/pt/