[LLVMdev] LLVM

Bruce Hoult bruce at hoult.org
Mon Nov 24 04:23:30 PST 2014


I winder if your task might be more suited to something like valgrind?


On Mon, Nov 24, 2014 at 10:42 PM, Omar Abed Alkar Darwish <
omar.darwish at wmich.edu> wrote:

> Hi all,
>
> 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:
> clang hello.c -o hello
> clang -O3 -emit-llvm hello.c -c -o hello.bc
>
> but I found that there is a lot of libraries didn't work with clang
> specially c++ and many in c also.
>
> I run my codes under visual studio and it works fine and I got an exe file.
>
> 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).
>
> or
>
> How can I make clang supported to visual studio libraries?
>
> or
> If there any simple tools to generate bite code in windows, where I can
> pass the bit codes to clang under ubento.
>
> Please send me a detailed solution because I am completely new wth LLVM
> stuff.
>
> Thanks in advance,
> --Omar
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141125/0eb73dd3/attachment.html>


More information about the llvm-dev mailing list