Hello. My name is Seung Jae Lee. I'd like to ask you onething about converting to ARM assembly code. I saved the simplest C code shown in your LLVM webpage as 'hello.c' And I made 'hello.bc' by "$ llvm-gcc hello.c -o hello". In order to make ARM assembly code, I typed "llc -march=arm hello.bc -o hello.arm" But, I met this error. llc: ARMISelDAGToDAG.cpp:73: llvm::SDOperand LowerCALL(llvm::SDOperand, llvm::SelectionDAG&): Assertion `isVarArg == false && "VarArg not supported"' failed. llc((anonymous namespace)::PrintStackTrace()+0x15)[0x850437d] llc((anonymous namespace)::SignalHandler(int)+0x139)[0x8504645] Aborted I can't understand. Would you mind replying to me w.r.t this? Thank you. Best regards, Seung Jae Lee ------------------------------------------------ Phone: +1-217-377-1932 Webpage: http://struct.nazoo.net/cv/cv_eng.htm Graduate Research Assistant Dept. of Civil & Environmental Engineering University of Illinois at Urbana-Champaign ------------------------------------------------
Hi Seung Jae Lee, On Thu, 2006-11-09 at 01:25 -0600, Seung Jae Lee wrote:> Hello. My name is Seung Jae Lee. > I'd like to ask you onething about converting to ARM assembly code. > I saved the simplest C code shown in your LLVM webpage as 'hello.c' > And I made 'hello.bc' by "$ llvm-gcc hello.c -o hello".Sounds like you're using llvm-gcc3> In order to make ARM assembly code, I typed "llc -march=arm hello.bc -o hello.arm" > But, I met this error. > > llc: ARMISelDAGToDAG.cpp:73: llvm::SDOperand LowerCALL(llvm::SDOperand, llvm::SelectionDAG&): Assertion `isVarArg == false && "VarArg not supported"' failed. > llc((anonymous namespace)::PrintStackTrace()+0x15)[0x850437d] > llc((anonymous namespace)::SignalHandler(int)+0x139)[0x8504645] > Aborted > > I can't understand. Would you mind replying to me w.r.t this?The ARM back end is incomplete. It looks to me like you've used a feature (var arg functions) that isn't implemented yet. However, I'll let Raphael Espinodola (the ARM maintainer) answer definitively on this.> Thank you. > > Best regards, > Seung Jae LeeThanks for your interest in LLVM. Reid.
On 11/9/06, Seung Jae Lee <lee225 at uiuc.edu> wrote:> Hello. My name is Seung Jae Lee. > I'd like to ask you onething about converting to ARM assembly code.ARM is still a work in progress (but make steady and good progress at that). I don't believe all features work yet. In this case, it looks like ARM cannot handle va_arg calls yet, aka your call to printf. Andrew> I saved the simplest C code shown in your LLVM webpage as 'hello.c' > And I made 'hello.bc' by "$ llvm-gcc hello.c -o hello". > In order to make ARM assembly code, I typed "llc -march=arm hello.bc -o hello.arm" > But, I met this error. > > llc: ARMISelDAGToDAG.cpp:73: llvm::SDOperand LowerCALL(llvm::SDOperand, llvm::SelectionDAG&): Assertion `isVarArg == false && "VarArg not supported"' failed. > llc((anonymous namespace)::PrintStackTrace()+0x15)[0x850437d] > llc((anonymous namespace)::SignalHandler(int)+0x139)[0x8504645] > Aborted > > I can't understand. Would you mind replying to me w.r.t this? > Thank you. > > Best regards, > Seung Jae Lee > > ------------------------------------------------ > Phone: +1-217-377-1932 > Webpage: http://struct.nazoo.net/cv/cv_eng.htm > > Graduate Research Assistant > Dept. of Civil & Environmental Engineering > University of Illinois at Urbana-Champaign > ------------------------------------------------ > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
> But, I met this error. > > llc: ARMISelDAGToDAG.cpp:73: llvm::SDOperand LowerCALL(llvm::SDOperand, llvm::SelectionDAG&): Assertion `isVarArg == false && "VarArg not supported"' failed. > llc((anonymous namespace)::PrintStackTrace()+0x15)[0x850437d] > llc((anonymous namespace)::SignalHandler(int)+0x139)[0x8504645] > AbortedTry to download the CVS version. Varargs is already implemented in CVS :-)> I can't understand. Would you mind replying to me w.r.t this? > Thank you. > > Best regards, > Seung Jae LeeBest Regards, Rafael