We are trying to use LLVM (Clang as the C frontend) to generate code for 32-bit MIPS (little-endian)l, which can run on simplescalar 3.0 sslittle-na-sstrix platform. Can you advise what would be the right way to use the LLVM compiler infrastructure?<div>
<br></div><div>The following is the one I used, but it appears that it produce the code in big-endian (and I wonder whether the calling convention is right.) To check the correctness of code generation in a quick and dirty way, I don't invoke LLVM "opt"</div>
<div><br></div><div>(1) clang -emit-llvm hello.c -S -o hello.ll</div><div>(2) llvm-as hello.ll</div><div>(2) llc -march=mips hello.bc</div><div><br></div><div>Thanks in advance.<br clear="all"><br>
</div>