<html><head></head><body>Indeed, GHC can indeed produce (very slow) C. This is known as unregisterised mode [1]. That being said, I'm not sure that helps you with the task at hand. Afterall, you still would need a haskell compiler to build your unregisterised compiler.<br>
<br>
[1] <a href="https://ghc.haskell.org/trac/ghc/wiki/Building/Unregisterised">https://ghc.haskell.org/trac/ghc/wiki/Building/Unregisterised</a><br><br><div class="gmail_quote">On August 22, 2018 12:12:27 PM EDT, Sam Halliday <sam.halliday@gmail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Hi Tom,<br><br>I'm not sure it is necessary to go back that far. Vitaly pointed out<br>that any version of GHC could produce the "minimal C" output, which<br>can be ported to another platform that doesn't have a GHC, as the<br>bootstrap. I'm not entirely sure how to generate that output, mind<br>you.<br><br>On 22 August 2018 at 17:05, <amindfv@gmail.com> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> (I haven't actually done this, but:) If you want to be able to install GHC without any GHC binary, I think you'd have to start with an ancient version of GHC which wasn't itself written in Haskell, and build successive versions (skipping as many as possible) until you had a GHC which supported all the language features the most-recent version requires.<br><br> If you did embark on this, it would be nice if you could report back with a minimal number of steps it takes to get to current GHC!<br><br> Tom<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> El 22 ago 2018, a las 06:01, Sam Halliday <sam.halliday@gmail.com> escribió:<br><br> Hi Ben,<br><br> What is the recommended way to build old versions of GHC? The<br> haskell.org binaries for, e.g. 7.8.3, do not work on my machine. If I<br> attempt to recompile ghc 7.8.3 with the haskell.org binary, I get<br> linkage errors.<br><br> Actually I'd love to be able to bootstrap a build without any ghc<br> installed... that would solve the problem. I heard about the "phase0"<br> approach from Vitaly Bragilevsky at his Lambdaconf talk this year. But<br> I've been unable to find any documentation about it.<br><br> Best regards,<br> Sam<br><br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"> On 22 August 2018 at 12:30, Ben Gamari <ben@smart-cactus.org> wrote:<br> In general we don't support bootstrapping older GHCI with newer GHC.<br> However, you may be able to hack something together by manually tweaking<br> bounds.<br><br> Cheers,<br><br> - Ben<br><br> --<br> Sent from my Android device with K-9 Mail. Please excuse my brevity.<br><hr><br> Glasgow-haskell-users mailing list<br> Glasgow-haskell-users@haskell.org<br> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users">http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users</a><br></blockquote><hr><br> Glasgow-haskell-users mailing list<br> Glasgow-haskell-users@haskell.org<br> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users">http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users</a><br></blockquote></blockquote></pre></blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>