<div>I want to obtain a dump of CFG for a simple foo program </div>
<div> </div>
<div>#include <stdio.h></div>
<div>int main() {<br>  printf("Hello, World!\n");<br>}<br></div>
<div>I have tried the command</div>
<div> </div>
<div>clang -cfg-dump foo.c</div>
<div> </div>
<div>It gives a warning and ignores -cfg-dump option.</div>
<div> </div>
<div>Also, if it is unable to link edit the program.  when I give the command  </div>
<div> </div>
<div>clang foo.c</div>
<div> </div>
<div>It gives an error </div>
<div> </div>
<div>/usr/bin/ld: crtbegin.o: No such file: No such file or directory<br>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div>
<div> </div>
<div>Running with -v option gives the error</div>
<div> </div>
<div>/usr/bin/ld: crtbegin.o: No such file: No such file or directory<br>clang: error: linker command failed with exit code 1 (use -v to see invocation)<br></div>
<div>Any help to dump cfg would be appreciated.</div>
<div> </div>
<div>Surinder<br></div>