[m-dev.] Deep profile tail recursion.

Paul Bone pbone at csse.unimelb.edu.au
Tue Jul 29 17:57:30 AEST 2008


On Fri, Jul 25, 2008 at 03:58:56PM +1000, Paul Bone wrote:
> 
> Hi Zoltan.
> 
> The deep profiler is supposed to create a duplicate of any tail
> recursive procedure, so that tail recursion optimization can be
> performed and exit_port_code() can be called at the end of the original
> procedure.
> 
> I've found that this is disabled by default, and when enabled appears to
> make the compiler crash with the following error:
> 
> Uncaught Mercury exception:
> Software Error: proc_gen.m: Unexpected: generate_deep_prof_info: no HLDS
> deep profiling layout info
> 
> This is on a development version of the compiler in one of my
> workspaces, so the error may not occur with the CVS version.
> 

I've been able to re-produce this problem on a clean workspace, and made
a small attept at fixing it.

Since I don't require this to be working I'm not going to concentrate on
this.

Thanks.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mercurylang.org/archives/developers/attachments/20080729/0e7f05a7/attachment.sig>


More information about the developers mailing list