<div dir="ltr">I'm interested in using clang as an x64 assembler, partly because it together with lldb seems to be the only way to debug assembly on a Mac. I wondered if someone could answer a few questions.<div><br></div><div>I can't find any documentation about clang and assembly. Through experimentation, I have discovered that this works:</div><div><br></div><div><div>$ clang -g -c -x assembler hello.s</div><div>$ clang hello.o -o hello</div><div>$ ./hello</div><div>Hello, world!</div></div><div><br></div><div>Are these commands (and other relevant command line options) documented somewhere? Is the supported assembly syntax documented somewhere (it seems to support GAS syntax; is it reasonable to use the GAS manual as a reference?)? </div><div><br></div><div>Is this recommended? That is, is the integrated assembler intended to be used to write assembly code for a production system in this way, and is it reasonable to rely on it continuing to work in the future? </div><div><br></div><div>Thanks.</div><div><br></div><div>Mike</div></div>