[LLVMdev] Sparc assembly syntax

Bruno Cardoso Lopes bruno.cardoso at gmail.com
Fri Aug 1 10:31:42 PDT 2008


Hi Richard,

> My question is: What is the "right" way to do this? I looked at the Mips
> code generator a little bit and it feels a little more modern. Is that
> correct?

Yes. There's new work on ELF asm output going on, and AFAIK only
Mips and X86 are using it.

> Which code generator(s) are the best to look at for a template to do
> asm/ELF output?

x86 is the most complete one, but as a start I'd suggest Mips.

> I've started work on a Nios2 code generator, which I originally based on
> Mips because its architecture is similar. Is there a better starting point?

Cool, send patches when you get something working :)

-- 
Bruno Cardoso Lopes
http://www.brunocardoso.cc
"When faced with untenable alternatives, you
 should consider your imperative."



More information about the llvm-dev mailing list