Chapter 4

Source code analysis and instrumentation

Abstract

This chapter describes source code analysis and instrumentation techniques to uncover runtime data later used to decide about the most suitable compilation and/or execution strategy. We describe program metrics derived by static analysis and runtime profiling. This chapter introduces data dependence analysis and graph-based representations to capture both static and dynamic program information. Finally, we highlight the importance of customized profiling and present LARA examples that capture customized profiling strategies to extract complex code metrics.

Keywords

Instrumentation; Profiling; Software metrics; Code analysis; Data dependences

4.1 Introduction

Source code analysis ...

Get Embedded Computing for High Performance 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.