Size of crosscompiled exectuable

Brandon Allbery allbery.b at
Fri Jan 25 16:50:28 CET 2013

On Fri, Jan 25, 2013 at 8:58 AM, Nathan Hüsken <nathan.huesken at>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 about 5MB.

If I had to guess, libc is linked dynamically on Ubuntu (Linux really wants
this) but statically when cross-compiled.

brandon s allbery kf8nh                               sine nomine associates
allbery.b at                                  ballbery at
unix, openafs, kerberos, infrastructure, xmonad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Glasgow-haskell-users mailing list