Hi everyone The c code is like below extern int function_0(int, int); int main(){ return function_0(8, 9); } I compile it as below llvm-gcc main.c -emit-llvm -c -O3 -o main.bc llc main.bc -relocation-model=static -march=mips -O0 -o main.s It seems no argument is provided to function_0 ... addiu $sp, $sp, -8 sw $ra, 0($sp) jal function_0 nop ... What's the reason? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100128/56d216bc/attachment.html>
Hi Heyu, On Thu, Jan 28, 2010 at 9:27 AM, Heyu Zhu <zhu.heyu at gmail.com> wrote:> Hi everyone > > The c code is like below > > extern int function_0(int, int); > > int main(){ > return function_0(8, 9); > } > > I compile it as below > > llvm-gcc main.c -emit-llvm -c -O3 -o main.bc > llc main.bc -relocation-model=static -march=mips -O0 -o main.s > > It seems no argument is provided to function_0 > > ... > addiu $sp, $sp, -8 > sw $ra, 0($sp) > jal function_0 > nop > ... > > What's the reason?This not happens using llvm TOT (svn trunk). Best Regards, -- Bruno Cardoso Lopes http://www.brunocardoso.cc
Reasonably Related Threads
- [LLVMdev] Mips backend 3.2 va_arg possible bug
- [LLVMdev] Tracing nodes in selectionDAG to final code...
- [LLVMdev] Mips backend 3.2 va_arg possible bug
- [LLVMdev] Does mips backend support variable arguments in release version(llvm-2.6)?
- [LLVMdev] Does mips backend support variable arguments in release version(llvm-2.6)?