[m-rev.] for review: add a demangled name field to MR_ProcIds

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Jan 2 15:31:38 AEDT 2002


On 31-Dec-2001, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> To allow us to fill in this field properly, I propose the following:
> 
> - That we replace the name fields of pred_infos (which is currently a string)
>   with a structured data type with three base functors for user-defined
>   preds/funcs and compiler-generated unify/index/compare preds and
>   compiler-generated lambda preds/funcs respectively, and some recursive
>   functors that tack on things such as type specialization, higher-order
>   specialization, unused arg removal etc.
> 
> - That this type be defined in a new module, together with the code for
>   turning values of that type into a string and for parsing the resulting
>   strings back to values of that type.

That sounds fine.

> - That this module be in the library (probably with documentation suppressed
>   as we currently do for e.g. private_builtin), so that we can replace all
>   mangling/demangling code with calls to the code of this library module.
>   This should not just the compiler, the old profiler and the deep profiler,
>   but even include util/mdemangle.c, if we can solve the bootstrapping issue
>   involved.

Why not in the "browser" directory, like browser/name_mangle.m?

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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