Hi Eric,

On Mon, 03 Mar 2008 08:42:46 +0900, Eric Y. Kow <[EMAIL PROTECTED]> wrote:
>> 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.
>
> Well, it seems like using strip is pretty simple advice, and quite
> helpful in that it shrank the UTF8Sampler from 8M to 4M.  But I suppose
> -split-objs would really make the biggest difference?

Windows doesn't have strip in defalt.
He must install MinGW or installing strip by hand for to use strip.

On the other hand, ghc always has -split-obj option in any platform.
Of cource, that can use Windows platfrom too.

So I think -split-obj is better than strip.

On Mon, 03 Mar 2008 08:42:46 +0900, Eric Y. Kow <[EMAIL PROTECTED]> wrote:
>> (OutputDir)/(ModuleName)_split directory has ld.script that describe just 
>> INPUT(...).
>> So, I think we must pass that per modules.
>
> (snip)
>
> The problem is that I don't really know what we do with them.  The one
> difference I noticed (and that I pounced on) is that it is these files
> that get put into the libfoo.a archive files.  I'm guessing that this is
> enough because when you pass in a whole bunch of object files as
> arguments to a linker, the linker is smart enough to ignore any files
> that are not used at all?
>
> Also, I'm guessing that the ld.script stuff is GNU-specific (we don't
> get them on MacOS X), and that it isn't even neccessary for GNU (it's
> just an alternative to having a very long list of command line
> arguments).

I see.

I don't know why ghc generate ld.script. But I find an problem by linking
whole object by ar on Windows platform. I report that in next mail.


Best Regards,

-- 
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