Intel® Advisor User Guide

ID 766448
Date 10/31/2024
Public
Document Table of Contents

Tips for Annotation Use with C/C++ Programs

The following topics provide tips related to using annotations with C/C++ programs:

NOTE:
In most cases, you do not need source annotations when using Intel® Advisor, except for the Suitability analysis of the Threading perspective. When analyzing your application with other perspectives, such as Vectorization and Code Insights or Offload Modeling, you can analyze all parts of your code automatically or use Intel Advisormark-up capabilities, which do not require you to recompile your application.
  • Depending on your particular environment, you may want to control the expansion of macros in advisor-annotate.h by using the ANNOTATE_EXPAND_NULL environment variable. See the help topic Controlling the Expansion of advisor-annotate.h.

  • Tips for Windows* OS only:

    • Because the advisor-annotate.h header file includes windows.h, including advisor-annotate.h may cause type and symbols conflicts, which result in unexpected compiler messages. See the help topic Handling Compilation Issues that Appear After Adding advisor-annotate.h.

    • If you run into certain unexpected problems, you need to learn how advisor-annotate.h and libittnotify.dll interact. See the help topic advisor-annotate.h and libittnotify.dll.