TLB hit 💥

A podcast about systems & compilers

🐦 @TLBhit

🎙 RSS

🍎 Apple podcast

Episode 3: __builtin_expect(!!(x), 0)

Intro [00:00]

Programmers and Programs: What Do They Know? Do They Know Things? Let's Find Out! [00:30]

Episode Title [01:30]

What are annotations and where do they go? [02:00]

Probability Distribution [04:00]

Annotations and Semantics, Principle of Least Astonishment [05:00]

Performance Cliffs, Performance Portability [06:15]

Is this AoP?! [08:00]

Data flow vs control flow, conditional move [08:30]

Flags registers [10:10]

Control on von Neumann style machines [11:10]

To loops... to loops... to loops... [13:35]

What's the point of the annotations? [15:00]

Work efficiency [16:30]

Profile Guided Optimizations [19:15]

Cover Points [21:50]

PGO Examples [22:20]

"Exceptional Systems" [23:20]

Simplest Possible Solutions [24:50]

Hardware Isn't Instantaneous [26:20]

Heisen-fetch! [28:10]

Modern CPUs vs max simplicity [28:50]

Retirement Hardware [31:15]

So Much Left To Discuss... [37:00]

When you assume... [37:45]

Crude Mechanisms: Expect the Unexpected! [38:50]