<div dir="ltr">I winder if your task might be more suited to something like valgrind?<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 24, 2014 at 10:42 PM, Omar Abed Alkar Darwish <span dir="ltr"><<a href="mailto:omar.darwish@wmich.edu" target="_blank">omar.darwish@wmich.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I am trying to build a dataset for low level instruction from different C/C++ source codes. I am using the InstCount passer to get the code instruction (load, store .... other assembly types) results. I am using the following steps to get the bit code for the c/c++ source code (so I can apply the InstCount passer on the bit code and get the results) The steps are:<br>
clang hello.c -o hello<br>
clang -O3 -emit-llvm hello.c -c -o hello.bc<br>
<br>
but I found that there is a lot of libraries didn't work with clang specially c++ and many in c also.<br>
<br>
I run my codes under visual studio and it works fine and I got an exe file.<br>
<br>
I am wondered if there any way that can give me the chance to compile my code under visual studio (windows OS) then I took .exe and pass it to Clang so I can get the bit code file. (by the way I tried it and it didn't work).<br>
<br>
or<br>
<br>
How can I make clang supported to visual studio libraries?<br>
<br>
or<br>
If there any simple tools to generate bite code in windows, where I can pass the bit codes to clang under ubento.<br>
<br>
Please send me a detailed solution because I am completely new wth LLVM stuff.<br>
<br>
Thanks in advance,<br>
--Omar<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>