It is very easy to use. Just download the binaries, include the
iacaMarks.hheader and insert marks at the code positions that you want to analyze. Take a look at the following example:
// source code of example.exe #include <iacaMarks.h> /* ... */ IACA_START /* insert your code that should be analyzed here */ IACA_ENDAfter compiling your source code (release build!) you can start the
iacacommand line tool and pass the exe-file as a parameter. For example:
C:\> iaca.exe -mark 0 -o analysis.txt example.exeThe
-mark 0parameter will analyze all marked blocks in your code (only needed if you have more than one
iaca.exestore the results in a text file (this has the benefit that lines are not truncated to 80 characters as would happen if you output to the console).
You program will not be able to execute when you have the
IACAmacros enabled in your code. If you want to execute the program again, remove the macros or define
IACA_MARKS_OFFbefore you use the macros.
I will add an example of the output in the future on this blog post. So check back later if you are interested. There is however a good documentation available (look for User's Guide on the IACA webpage).