The Mercury Project |
|
|
Home
Information
Mailing Lists
Download |
Subject: Re: [mercury-users] Newbie query about compiler optimisations From: Fergus Henderson (fjh@cs.mu.OZ.AU) Date: Sat Dec 02 2000 - 11:43:44 EST
On 01-Dec-2000, Sandy Harris <sandy@storm.ca> wrote:
Well, the code for that is trivial ;-)
findleft(P, C, K1) :-
The hard bit is getting the compiler to optimize that! Currently
The Mercury compiler does do the converse optimization, eliminating
foo(A, B, C, _) :-
The code to do this optimization is in compiler/unused_args.m
But we haven't yet taught the Mercury compiler how to eliminate unused
Cheers,
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post: mercury-users@cs.mu.oz.au
administrative address: owner-mercury-users@cs.mu.oz.au
unsubscribe: Address: mercury-users-request@cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request@cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
This mail archive was generated by hypermail 2b25 on Sun Dec 31 2000 - 00:40:03 EST. |