[mercury-users] Executable size

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Oct 14 15:44:29 AEST 1999


On 11-Oct-1999, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> On 11-Oct-1999, Robert Ernst Johann JESCHOFNIK <rejj at cat.cs.mu.OZ.AU> wrote:
> > Has the Mercury runtime grown recently? Just to see what would happen, I
> > compiled my graphics assignment (written with Mercury 0.8 [or 0.8.1] in
> > mind) with rotd-1999-10-10.. and noticed that the binary produced was
> > about 26k larger. I used the same Mmakefile, which sets the mcflags
> > --intermodule-optimization, -O 6, and the mgnucflag
> > -DML_OMIT_ARRAY_BOUNDS_CHECKS. With 0.8 the binary was 63,764 bytes, and
> > with the ROTD it was 89,564 bytes.
> > 
> > I'm just curious as to why.
> 
> Probably those sizes are for a dynamically linked executable,
> in which case the size of the runtime won't affect them.
> 
> I don't know off-hand what the increase is due to.  It may be due to
> more aggressive inlining (see my response to your other email).

Simon Taylor just found and fixed a recently-introduced bug in the ROTD
which caused the compiler to be unintentionally over-aggressive in its
attempts at intermodule inlining.  So I expect that if you try it with
the next ROTD you will get a size closer to that for 0.8.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list