<div dir="ltr">AFAIK, nobody cared about it enough to maintain it, so it bit-rotted.<div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 19, 2016 at 7:43 AM, Bruce Hoult via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Wed, Oct 19, 2016 at 4:38 PM, Krzysztof Parzyszek via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 10/18/2016 4:54 AM, Renato Golin via llvm-dev wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Unfortunately, we don't have a C-only front-end, nor you can select<br>
some C-only libraries in LLVM to compile C-only code. Such a goal<br>
should have been set from the beginning, and honestly, it would have<br>
made LLVM's code horrendous to work with.<br>
</blockquote>
<br></span>
An option would be to have a C backend again, and then cross-compile the toolchain for the new target, but compile it into C, which then can be recompiled into binaries on the target platform.<br>
<br>
I actually bootstrapped an SML compiler for FreeBSD/ppc this way a while back. A part of the compiler was written in SML and there was an option to compile SML to C (that was actually one of the ways to generate final code: the C output would then be passed to a system C compiler). I think the SML compiler was mlton, but I'm not 100% certain.<br></blockquote><div><br></div></span><div>There are lots of languages that use C as a kind of virtual assembly language as a back end. Usually, little more than K&R is needed. Very often replacing some ancient custom code generator with C to feed to a modern gcc or clang will improve performance considerably. Not to mention being far more portable.</div><div><br></div><div>What was the difficulty with the C back end previously in LLVM?</div><div><br></div></div></div></div>
<br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div></div>