[llvm-dev] enable target specific MC bankend in clang command line

幻神 via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 22 06:41:35 PDT 2020


Hi,


Is there anyway to enable both compile and object file generation by using target specific machine code emitter?
Usually, i did this by 
"clang -S -emit-llvm --target xxx a.c -o a.ll"
"llc -march=xxx -mcpu=xxx -relocation-model=static -filetype=obj a.ll -o a.o"
can single "clang" cmd do this? like
"clang xxx a.c -o a.o"


now we don't have assembler for our target, so clang driver toolchain doesn't work. we don't implement target specific asmparser, either.


Best regrads,
Han Li
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200922/73fa8f4e/attachment.html>


More information about the llvm-dev mailing list