<div><div dir="auto">What about the AR make variable?</div><br><div class="gmail_quote"><div>On Sun, Jan 13, 2019 at 1:08 AM Alberto Barbaro <<a href="mailto:barbaro.alberto@gmail.com">barbaro.alberto@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Hi Peng,</div><div dir="auto">Maybe you can install wllvm[1] and after use something like make CC=wllvm ?</div><div dir="auto"><br></div><div dir="auto">Thanks</div><div dir="auto"><br></div><div dir="auto">[1] <a href="https://github.com/travitch/whole-program-llvm" target="_blank">https://github.com/travitch/whole-program-llvm</a><br><div dir="auto"><br></div><br><br><div class="gmail_quote" dir="auto"></div></div></div><div dir="auto"><div dir="auto"><div class="gmail_quote" dir="auto"><div>On Sun, Jan 13, 2019, 06:44 Peng Yu via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a> wrote:<br></div></div></div></div><div dir="auto"><div dir="auto"><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div></div><div dir="auto"><div dir="auto"><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This URL mentions using LLVM IR to perform code analysis.<br>
<br>
<a href="https://stackoverflow.com/questions/9939794/how-to-use-llvm-to-generate-a-call-graph" rel="noreferrer noreferrer" target="_blank">https://stackoverflow.com/questions/9939794/how-to-use-llvm-to-generate-a-call-graph</a><br>
<br>
But the first problem to solve is how to convert the commands used in<br>
Makefiles to the corresponding LLVM commands.<br>
<br>
<a href="https://pastebin.com/RcnA14Qa" rel="noreferrer noreferrer" target="_blank">https://pastebin.com/RcnA14Qa</a><br>
<br>
The above URL shows the makefile screen output from the bash source<br>
code. Where `gcc -c`, `gcc` (link with -L -l), `ar` are used.<br>
<br>
Note that an archive (.a) file is created by combining many .o files<br>
in bash source code make output.<br>
<br>
However, LLVM does not have llvm-ld anymore. So there is no way to<br>
create a library file.Mising the ability to create an archive file in<br>
LLVM can cause trouble to mimic the compile flow using make.<br>
<br>
Does anybody have any good solution to this problem?<br>
<br>
-- <br>
Regards,<br>
Peng<br></blockquote></div></div></div><div dir="auto"><div dir="auto"><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div></div>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Regards,<br>Peng</div>