[LLVMdev] llvm-mc standalone assemblers and testing
jcarter at mips.com
Wed Jan 11 22:09:43 CST 2012
We are already generating object directly.
It is on my roadmap to implement the standalone assembler, but I was hoping for some suggestions ;-)
My target is Mips and I have started looking at what ARM does. If there is a better model or how-to guide I'd like to know.
From: Owen Anderson [resistor at mac.com]
Sent: Wednesday, January 11, 2012 6:40 PM
To: Carter, Jack
Subject: Re: [LLVMdev] llvm-mc standalone assemblers and testing
On Jan 11, 2012, at 6:05 PM, Carter, Jack wrote:
I have had references to llvm-mc in terms of a tester for MC level code changes and have just found and read the blog http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html.
Am I correct that lib/Target/<target>/AsmParser/*.cpp needs to be completed to make a standalone assembler for a specific target and until that is done, llvm-mc can't be used to generate output object that is tested by elf-dump?
You need to implement an AsmParser if you want to generate object files from assembly files. You can generate object files from higher-level inputs (.c, .ll) without a functional AsmParser as long as your inputs don't use inline assembly.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LLVMdev