Account
LESSON 18 OF 96

Prefetching: hardware, software, and pointer chasing

CPU and Memory in the Exchange Data Path · Advanced → Expert

Structured lesson outlineThis lesson's video and full tutorial are not yet published. The learning objectives and exercises below outline what the finished lesson will cover.

Learning objectives

Focus on the underlying model and the engineering decisions rather than memorizing a single code snippet.

  • 01

    Know where hardware prefetchers succeed

  • 02

    Choose software-prefetch distance empirically

  • 03

    Explain why pointer chasing defeats regular prefetch

Hands-on exercise

Compare sequential, strided and pointer-chasing access with optional prefetch.

What a good result looks like

A prefetch-distance sweep and explanation of its useful range.

APPLY WHAT YOU LEARN

C++ practice problems

3 related C++ topics

In-review topics are curriculum-linked challenge plans, not yet complete runnable tasks.

Progress is saved on this device.