[m-rev.] for review: make pred names for lambdas unique

Julien Fischer juliensf at cs.mu.OZ.AU
Tue May 24 00:10:48 AEST 2005


On Mon, 23 May 2005, Ian MacLarty wrote:

> I'm not sure if I've done this change correctly.  There seem to be two places
> where the predicate name of a lambda expression is computed.  Once when it gets
> added to the hlds (in lambda.m) and then again when the C code is generated
> (in layout_out.m).  I have no idea why this is done twice.  Also the unique
> number associated with each lambda is called "LambdaCount" in lambda.m and
> "SeqNo" in layout_out.m and I couldn't work out if these two numbers
> correspond.  Does the predicate name generated in lambda.m need to be the
> same as the one generated in layout_out.m?
>
> For review by anyone who can answer the above question.
>

I'm not sure I can answer that question, but this change will
(presumably) affect the profilers as well, so will also
need to look at:

	deep_profiler/read_profile.m
	profiler/demangle.m
	util/mdemangle.c

Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list