Re: Size of crosscompiled exectuable

2013-01-28 Thread Simon Marlow
On 26/01/13 08:24, Nathan Hüsken wrote: On 01/25/2013 05:45 PM, Simon Marlow wrote: On 25/01/13 16:35, Simon Marlow wrote: On 25/01/13 15:51, Stephen Paul Weber wrote: Somebody claiming to be Simon Marlow wrote: On 25/01/13 13:58, Nathan Hüsken wrote: A simple hello world application has

Re: Size of crosscompiled exectuable

2013-01-26 Thread Nathan Hüsken
On 01/26/2013 09:24 AM, Nathan Hüsken wrote: On 01/25/2013 05:45 PM, Simon Marlow wrote: On 25/01/13 16:35, Simon Marlow wrote: On 25/01/13 15:51, Stephen Paul Weber wrote: Somebody claiming to be Simon Marlow wrote: On 25/01/13 13:58, Nathan Hüsken wrote: A simple hello world application

Re: Size of crosscompiled exectuable

2013-01-26 Thread David Terei
To pass to opt use '-optlo', e.g., $ ghc -fllvm -optlo-adce ... Its documented in the GHC userguide. Cheers, David On 26 January 2013 02:07, Nathan Hüsken nathan.hues...@posteo.de wrote: On 01/26/2013 09:24 AM, Nathan Hüsken wrote: On 01/25/2013 05:45 PM, Simon Marlow wrote: On 25/01/13

Size of crosscompiled exectuable

2013-01-25 Thread Nathan Hüsken
Hey, A simple hello world application has 1Mb in by 64 bit ubunut machine. When I stript it, is has about 750kb. When I build a cross compiler for android (arm), the executable has a asize of about 10MB, stripped about 5MB. That is huge, five times the size on my linux sysem. Why is this? Can I

Re: Size of crosscompiled exectuable

2013-01-25 Thread Simon Marlow
On 25/01/13 13:58, Nathan Hüsken wrote: A simple hello world application has 1Mb in by 64 bit ubunut machine. When I stript it, is has about 750kb. GHC statically links all its libraries by default. If you want a dynamically linked executable, use -dynamic (ensure you have the dynamic

Re: Size of crosscompiled exectuable

2013-01-25 Thread Brandon Allbery
On Fri, Jan 25, 2013 at 8:58 AM, Nathan Hüsken nathan.hues...@posteo.dewrote: A simple hello world application has 1Mb in by 64 bit ubunut machine. When I stript it, is has about 750kb. When I build a cross compiler for android (arm), the executable has a asize of about 10MB, stripped about

Re: Size of crosscompiled exectuable

2013-01-25 Thread Stephen Paul Weber
Somebody claiming to be Simon Marlow wrote: On 25/01/13 13:58, Nathan Hüsken wrote: A simple hello world application has 1Mb in by 64 bit ubunut machine. When I stript it, is has about 750kb. When I build a cross compiler for android (arm), the executable has a asize of about 10MB, stripped