understanding ghc compilation driver architecture
Carter Schonwald
carter.schonwald at gmail.com
Sat May 18 23:42:35 CEST 2013
Good answers. Thanks!
I'm still learning a lot of the ghc code base, so I may have a few other
questions like this as I try to familiarize with ghc code.
Is the dev list an ok forum for these sorts of questions?
On Saturday, May 18, 2013, Ian Lynagh wrote:
> On Wed, May 15, 2013 at 12:45:01AM -0400, Carter Schonwald wrote:
> >
> >
> https://github.com/ghc/ghc/blob/master/compiler/main/DriverPipeline.hs#L803which
> > mentions the -fvia-c backend in 2-3 places
>
> I've updated that, ta.
>
> > 2) when the ghc driver is used to manage building c code for subsequent
> ffi
> > usage, it doesn't seem possible to use a c compiler to do *.c ->
> > *.o/dylib, instead it is only possible to do *.c-> *.s -> *.o/dylib.
> >
> > I'm curious about reasons c,s,o choice that are still in play.
>
> Well, it means that GHC can be used to compile hand-written asm, and it
> also means that you can do "ghc -S". Also, there's been no reason to
> change it.
>
>
> --
> Ian Lynagh, Haskell Consultant
> Well-Typed LLP, http://www.well-typed.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20130518/8d46a54e/attachment-0001.htm>
More information about the ghc-devs
mailing list