Inserting Annotations in a Text Editor

To insert Intel Advisor annotations into your source files on a Linux* system, you can use any text editor. Intel Advisor simplifies the process of locating where to insert annotations.

To insert Intel Advisor annotations:

  1. Open the Intel Advisor GUI and the relevant project.
  2. In the File menu, select Options.
  3. Select Editor to display the Options - Editor dialog box. Follow the instructions in Dialog Box Options - Editor to associate an editor with your source language(s).
  4. For your project, open the Survey Source window.
  5. Double-click a source line to display the specified editor opened to the corresponding source location.
  6. Use the annotation assistant pane in the lower part of the Survey Source window to select the type of annotation you want to insert.
  7. Copy the selected annotations from the annotation assistant pane by clicking the button.
  8. Paste the copied annotations into your editor.
  9. You may need to move some annotation lines around.
  10. Repeat as needed for other annotations from step 4. For more information about annotations, see Summary of Annotation Types.

This enables you to quickly insert annotations into the appropriate source files.

For more complete information about compiler optimizations, see our Optimization Notice.