[LLVMdev] LLVM
Omar Abed Alkar Darwish
omar.darwish at wmich.edu
Mon Nov 24 01:42:19 PST 2014
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
More information about the llvm-dev
mailing list