Dave's Brain

Browse - Programming Tips - What's the most far-out C programming thing?

Date: 2008apr2
Language: C/C++
Warning: This was invented in 1984, now-a-days I would just ask the compiler to optimize (eg -O3 option to gcc).
Keywords: duffs

Q.  What's the most far-out C programming thing?

A.  Quite possibly Duff's Device.

It's mind boggling.  It works and is perhaps actually useful
in some limited situations.

http://en.wikipedia.org/wiki/Duffs_device

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.