Hi Eric,

On Thu, 28 Feb 2008 07:34:14 +0900, Eric Y. Kow <[EMAIL PROTECTED]> wrote:
>> wxHaskell doesn't support GHC's -split-objs option any profiling option,
>> but Cabal does.
>
> I'm sending a quick little patch to let the user pass in flags to GHC.
> We call the linker ourselves, though, so I guess my patch isn't actually
> going to help matters?

No, It isn't.
We must tell the linker to link splited objects.
-split-objs option generates it in (OutputDir)/(ModuleName)_split directory per 
moudles.
You can see that your own directory or below cabal code.

http://www.haskell.org/ghc/docs/latest/html/libraries/Cabal/src/Distribution-Simple-GHC.html#getHaskellObjects

(OutputDir)/(ModuleName)_split directory has ld.script that describe just 
INPUT(...).
So, I think we must pass that per modules.


>> Current wxHaskell generates big binary. So I think this is important task, 
>> too.
>
> wxhaskell has a --enable-upx flag.  Would that be good enough?

No, that wouldn't.
I want to say about executable file, not about library file.

This flag and --enable-strip flag mean that using upx to compress wxc library.
But I doesn't affect to generate Haskell program size.

If we want to do it, to use -split-objs for spliting the single object file,
to use -f* options (I don't know this is good for wxHaskell or not), or to
use strip for Haskell program.

http://www.haskell.org/ghc/docs/latest/html/users_guide/options-phases.html#options-linker
http://www.haskell.org/ghc/docs/latest/html/users_guide/options-optimise.html#options-f
http://www.haskell.org/ghc/docs/latest/html/users_guide/smaller.html

-- 
shelarcy <shelarcy    hotmail.co.jp>
http://page.freett.com/shelarcy/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel

Reply via email to