#2115: option for ghc rts to be linked as a shared object / dll
--------------------------------+-------------------------------------------
Reporter: jvl | Owner:
Type: feature request | Status: new
Priority: normal | Component: Compiler
Version: 6.9 | Severity: normal
Keywords: | Testcase:
Architecture: Multiple | Os: Multiple
--------------------------------+-------------------------------------------
The ghc runtime is statically linked into each executable that ghc
creates. This adds approximately 600K or more to each executable. Whilst
for large programs this overhead is not to great, for embedded systems,
where space is a premium this becomes problematic. Many C compilers offer
a selection of statically linking in the C runtime library or dynamically
linking it in. GHC should offer the same options.
As ghc rts is considerably more complex than that of C runtime, this poses
some difficulty, but with appropriate bootstrapping code statically linked
to load a shared rts, when this option is selected; creating such an
option should not be to difficult to do.
This option, should in the first instance be made available on windows.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2115>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs