<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><div>Hi,</div><div><br></div><div>Is there anyway to enable both compile and object file generation by using target specific machine code emitter?</div><div>Usually, i did this by </div><div>"clang -S -emit-llvm --target xxx a.c -o a.ll"</div><div>"llc -march=xxx -mcpu=xxx -relocation-model=static -filetype=obj a.ll -o a.o"</div><div>can single "clang" cmd do this? like</div><div>"clang xxx a.c -o a.o"</div><div><br></div><div>now we don't have assembler for our target, so clang driver toolchain doesn't work. we don't implement target specific asmparser, either.</div><div><br></div><div>Best regrads,</div><div>Han Li</div><div><br></div>