hi, all I have some questions about LLVM 1. I recently compiled LLVM on my X86 machine correctly. But when I use the built LLVm compiling programs(in the getting started guide), I got an warning saying can not find library "lc" (something like that). Yet LLVM did yeild a execution native code and it runs correctly except with a waring saying something like "__main**"(I cann't remember very clearly). I followed all the install instructions except the installation dir for llvm is /home/my/llvm/llvm-bin/ and llvmgcc dir is /home/my/llvm/llvm/llvm-gcc and the configure option is --prefix=/home/my/llvm/llvm-bin/ --enable-jit --llvmgccdir=/home/my/llvm/llvm/llvm-gcc btw: there was an error when installing LLVM, the system complained "no pax command...". What pax is? 2. I want to do some work on register allocation using LLVM, which parts of code should I read? ( The whole source is too big for me) thans. --zhoufeng
On Monday 25 October 2004 08:05, zhou feng wrote:> 2. I want to do some work on register allocation using LLVM, which parts > of code should I read? ( The whole source is too big for me) > thans.You should check out llvm/lib/CodeGen and particularly the LiveVariables and RegAlloc* files. -- Alkis
On Mon, 25 Oct 2004, zhou feng wrote:> I have some questions about LLVM > 1. I recently compiled LLVM on my X86 machine correctly. But when I use > the built LLVm compiling programs(in the getting started guide), I got > an warning saying can not find library "lc" (something like that). Yet > LLVM did yeild a execution native code and it runs correctly except with > a waring saying something like "__main**"(I cann't remember very clearly). > I followed all the install instructions except the installation dir for > llvm is /home/my/llvm/llvm-bin/ and llvmgcc dir is > /home/my/llvm/llvm/llvm-gcc and the configure option is > --prefix=/home/my/llvm/llvm-bin/ --enable-jit > --llvmgccdir=/home/my/llvm/llvm/llvm-gccMake sure you set your LLVM_LIB_SEARCH_PATH envvar, as specified in the getting started guide: http://llvm.cs.uiuc.edu/docs/GettingStarted.html#environment> btw: there was an error when installing LLVM, the system complained "no > pax command...". What pax is?I have no idea.> 2. I want to do some work on register allocation using LLVM, which parts > of code should I read? ( The whole source is too big for me)As Alkis mentioned, the code in lib/CodeGen/* is the most relevant. -Chris -- http://llvm.org/ http://nondot.org/sabre/
On Mon, 25 Oct 2004 13:49:19 -0500 (CDT), Chris Lattner <sabre at nondot.org> wrote:> > btw: there was an error when installing LLVM, the system complained "no > > pax command...". What pax is? > > I have no idea.At least on Mac OS X, pax is a packaging utility, that reads and writes a bunch of formats including tar. I think it's used for Apple's installer packages. Not sure why it'd be mentioned in an LLVM build though. I've certainly never noticed it there. What platform are you using? -mike -- Michael McCracken UCSD CSE PhD Student San Diego Supercomputer Center http://www.cse.ucsd.edu/~mmccrack/
Chris Lattner wrote:> On Mon, 25 Oct 2004, zhou feng wrote: > >>btw: there was an error when installing LLVM, the system complained "no >>pax command...". What pax is?pax is a tool for reading/writing archives and copying file directories. It tries to make sense out of all the archive formats. Try "man pax" on Linux. Reid
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=GB2312" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Yes, I checked that envvar, and it is set.<br> The error msg when compiling a .c file is:<br> gccld: WARNING: Cannot find library -lc<br> gccld: WARNING: Cannot find library -lcrtend<br> Can LLVM be installed using a prefix?<br> --zhoufeng<br> <br> Chris Lattner wrote: <blockquote cite="midPine.LNX.4.44.0410251347490.27028-100000@nondot.org" type="cite"> <pre wrap="">On Mon, 25 Oct 2004, zhou feng wrote: </pre> <blockquote type="cite"> <pre wrap="">I have some questions about LLVM 1. I recently compiled LLVM on my X86 machine correctly. But when I use the built LLVm compiling programs(in the getting started guide), I got an warning saying can not find library "lc" (something like that). Yet LLVM did yeild a execution native code and it runs correctly except with a waring saying something like "__main**"(I cann't remember very clearly). I followed all the install instructions except the installation dir for llvm is /home/my/llvm/llvm-bin/ and llvmgcc dir is /home/my/llvm/llvm/llvm-gcc and the configure option is --prefix=/home/my/llvm/llvm-bin/ --enable-jit --llvmgccdir=/home/my/llvm/llvm/llvm-gcc </pre> </blockquote> <pre wrap=""><!----> Make sure you set your LLVM_LIB_SEARCH_PATH envvar, as specified in the getting started guide: <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu/docs/GettingStarted.html#environment">http://llvm.cs.uiuc.edu/docs/GettingStarted.html#environment</a> </pre> <blockquote type="cite"> <pre wrap="">btw: there was an error when installing LLVM, the system complained "no pax command...". What pax is? </pre> </blockquote> <pre wrap=""><!----> I have no idea. </pre> <blockquote type="cite"> <pre wrap="">2. I want to do some work on register allocation using LLVM, which parts of code should I read? ( The whole source is too big for me) </pre> </blockquote> <pre wrap=""><!----> As Alkis mentioned, the code in lib/CodeGen/* is the most relevant. -Chris </pre> </blockquote> </body> </html>