10

Debugging Using LLVM Tools

LLVM comes with a set of tools that helps you identify certain errors in your application. All these tools make use of the LLVM and clang libraries.

In this chapter, you will learn how to instrument an application with sanitizers, as well as how to use the most common sanitizer to identify a wide range of bugs, after which you’ll implement fuzz testing for your application. This will help you identify bugs that are usually not found with unit testing. You will also learn how to identify performance bottlenecks in your application, run the static analyzer to identify problems normally not found by the compiler, and create your own clang-based tool, in which you can extend clang with new functionality.

This chapter ...

Get Learn LLVM 17 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.