[mercury-users] Can mercury apply tail call optimization for this piece of code?

Zoltan Somogyi zs at csse.unimelb.edu.au
Thu Mar 31 14:07:56 AEDT 2011


On 30-Mar-2011, Vladimir Gubarkov <xonixx at gmail.com> wrote:
> How do you think, theoretically is this optimization possible, or maybe it's
> incorrect to perform such optimization? Though, I don't see why.

The Mercury compiler does not implement EVERY optimization that is
theoretically possible. This is one case that is missed by the current
implementation of --optimize-constructor-last-call.

Zoltan.
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list