I’m new on LLVM (and linux, and gcc and so on) and I’d like to know how to run and test LLVM projects. I’ve downloaded, installed and tested LLVM tools, such as llvm-gcc, llc, lli etc. But I don’t know how to test examples provided.
I just called “sudo make” inside “llvm/examples/fibonacci/”, what generated a directory named “Release” containing 2 files: fibonacci.d and fibonacci.o. How can I generate a binary executable file from those ones? I’ve tried to use gcc, but I got a lot of undefined reference errors. Where can I find a example of the command line I should use?
Thanks a lot.
P.S. I’m using ubuntu 10.10.
I think you need to run ./configure and make in the root of the
checkout, and then look at
llvm-checkout/Release/bin/examples/Fibonacci . All the binaries are
left under bin in a directory named after the build mode.
I just called "sudo make" inside "llvm/examples/fibonacci/", what generated a directory named "Release" containing 2 files: fibonacci.d and fibonacci.o. How can I generate a binary executable file from those ones?
The executable was placed in llvm/Release/examples.
Where can I find a example of the command line I should use?
See "An Example Using the LLVM Tool Chain" in the Getting Started guide.
I just looked at llvm/Release/examples directory and found the binary files I was trying to find/generate.
Thanks a lot.