0

I'm using IAR Embedded Workbench for ARM Cortex-M3 programming. The library I have to use is huge and I need a dependency graph to understand some parts. Can IAR create it or give me a useful report from a compiled code?

Thanks

Behnam

Behnam
  • 3
  • 3

1 Answers1

1

Have you tried giving the --dependencies option directly to the IAR compiler?

You should be able to take that output and use it to generate a dependency graph with, say, graphviz. If you use the --dependencies=m variant, then you will get a makefile-like output which will give you each header file required by each object file.

The IAR compiler manual is here; --dependencies is described on p 132

There's also makegrapher, which, if not exactly what you're after might be a good starting point :D

(Please excuse the delay in reply - I actually found your question while searching for answers to my own about using --dependencies!)

MichaelNJ
  • 46
  • 1
  • 6
  • I'm going to check your solution, thank you so much for answering :) – Behnam May 16 '15 at 07:01
  • While digging for another option yesterday, I also noticed the `--header_context` option which "Lists all referred source files"...might be of use. – MichaelNJ May 16 '15 at 10:08