Who is this for?

This is an introductory topic for Arm developers who want to learn about memory latency and cache usage in application programming.

What will you learn?

After completing this Learning Path, you'll be able to perform the following tasks:

  • Explain the importance of memory latency and how to reduce its impact
  • Identify how cache alignment impacts performance
  • Use cache prefetching to improve performance

Prerequisites

Before starting, you'll need the following prerequisites:

  • An Arm computer running Linux with recent versions of Clang or GCC installed.

Summary

AI-assisted

This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

Close
?
You’ll explore memory latency with a small C workload on Arm Linux. First, you’ll modify the application in stages: add an allocator for locality, adjust structure layout and cache alignment, and add prefetching to bring data closer to the CPU. Then, you’ll build and run each version. You’ll compare relative runtime trends, choose an effective alignment, and tune the prefetch distance to overlap memory access with computation.
Next