[mercury-users] compilation time

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Feb 22 13:13:17 AEDT 2000


On 21-Feb-2000, Robert Bossy <bossy at ccr.jussieu.fr> wrote:
> I came to compile a thousand lines long mercury code and it took nearly
> 5 minutes.
> This is not such a long time however I wonder if there are some tricks
> to reduce compilation time.

Compile with `-O0', to turn off optimizations that increase compilation time.

As Tom said, avoid large predicates; break them up into smaller ones.

Compile with `-v', `-V', and/or `-S' so that you can see where the time
is being spent.

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