<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>Having read through the documentation and browsed the code what are the missing pieces, if any, required to implement a "native" LLVM backend that:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>* is able to produce loadable (ELF) object files with DWARF debugging information</DIV><DIV>* handle inline assembly</DIV><DIV>* perform linker all necessary linking fixups</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>This assumes that there will be no native object file linking stage in the tool chain.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>From what I can tell the ELF writer should be able to produce the object files, but a DWARF-in-ELF writer would have to be created to insert the debugging information into the ELF file.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Either the inline assembly would be reverse compiled or handled by custom pass. I'm not sure what the options are here...</DIV><DIV><BR class="khtml-block-placeholder"></DIV>Am I on the right track?<DIV><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>--</DIV><DIV>Christopher Lamb</DIV><DIV><A href="mailto:christopher.lamb@gmail.com">christopher.lamb@gmail.com</A></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></BODY></HTML>