Hi guys, 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. -- []'s, pcmnac. www.pcmnac.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101121/8186069d/attachment.html>
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. Reid On Sun, Nov 21, 2010 at 3:16 PM, pcmnac++ <pcmnac at gmail.com> wrote:> Hi guys, > 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. > -- > []'s, pcmnac. > www.pcmnac.com > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >
On Nov 21, 2010, at 12:16 PM, pcmnac++ wrote:> 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. http://llvm.org/docs/GettingStarted.html#tutorial Trevor
I just looked at llvm/Release/examples directory and found the binary files I was trying to find/generate. Thanks a lot. On Mon, Nov 22, 2010 at 3:59 PM, Trevor Harmon <Trevor.W.Harmon at nasa.gov>wrote:> On Nov 21, 2010, at 12:16 PM, pcmnac++ wrote: > > 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. > > http://llvm.org/docs/GettingStarted.html#tutorial > > Trevor > >-- []'s, pcmnac. www.pcmnac.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101122/19699ac8/attachment.html>