---
title: "#duffs-device articles | Hashnode"
description: "Explore 1 articles tagged #duffs-device on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/duffs-device"
---

Tag

# #duffs-device

1 posts · 0 followers

[Gyeongtae Kim](https://hashnode.com/@dasae) · [Mar 17](https://hashnode.com/posts/zero-cost-defer-in-c/69ccbc80b504c4ed0a2a2e9a)

### [Zero-Cost defer in C: A Compiler Optimization Odyssey](https://dasae-scenic-route.hashnode.dev/zero-cost-defer-in-c?utm_source=hashnode&utm_medium=feed)

Shows how a Duff's device, two compilers, and a hidden LLVM flag turned a C macro 'defer' into a zero-cost abstraction, with benchmarks.

62 min read · [dasae-scenic-route.hashnode.dev](https://dasae-scenic-route.hashnode.dev/zero-cost-defer-in-c?utm_source=hashnode&utm_medium=feed)
