adding direct *.c -> *.o/so/dylib support to ghc compilation driver

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

adding direct *.c -> *.o/so/dylib support to ghc compilation driver

Carter Schonwald
hey all,

I think it'd be valuable to add direct C -> object file compilation support
to the ghc compilation driver for a number of reasons, which i have  filed
/ documented in a trac feature request ticket.
http://hackage.haskell.org/trac/ghc/ticket/7922

based upon my still cursory understanding of the relevant bits of the GHC
architecture, it seems like it'd be relatively straight forward to add
 such support and associated flags.

any feedback/thoughts on this proposal would be appreciated.


note: yes there is the work around of directly scripting the compilation
for the C-> object files, but that does raise the bar on ease of use, and
doesn't address some of the reasons for this ticket.

i'm open to spending some time in the next month writing a patch for this
if thats the best way to make it happen, though I'd probably need some
guidance / help at points. But either way, this is a nice little feature
that would be nice for a number of folks, not just myself

thanks
-Carter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20130520/ed05c8f7/attachment.htm>