Skip to content

GettingDumps

PavelKryukov edited this page Sep 30, 2015 · 1 revision

ICC

To dump IR in ICC use the following command line:

icc <your src-file> -mP2OPT_il0_print=<num>

where num is a phase number.
Stderr is used as the output stream.

If num = -1 then the dump will be printed after each phase.
Phase numbering isn't successive, the numbers of phases seem to be chosen at random.

Numbers of the most useful phases:

  • 6 - after building CFG
  • 2510 - after some optimizations.

    GCC

    To dump IR in GCC use the following command line:
    gcc <your src-file> -df
    The output will be in src-file.cfg

Clone this wiki locally