understanding ghc compilation driver architecture
ian at well-typed.com
Sat May 18 23:01:39 CEST 2013
On Wed, May 15, 2013 at 12:45:01AM -0400, Carter Schonwald wrote:
> 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
Ian Lynagh, Haskell Consultant
Well-Typed LLP, http://www.well-typed.com/
More information about the ghc-devs