[m-rev.] diff: reduce the size of debug-grade .c files

Zoltan Somogyi zs at cs.mu.OZ.AU
Wed Mar 10 16:41:18 AEDT 2004

On 10-Mar-2004, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
>> The third technique is reduce the length of the names of the data structures
>> containing common cells and their types, by reducing the length of their
>> prefixes and module qualify them only if we have to, and deleting the
>> duplicate mercury_ prefixes from the names of some debugger data structures.
> Won't that change break the demanglers
> (util/mdemangle.c and profiler/demangle.m)?

No. The one in util is for link errors. In the absence of --split-c-files,
the common structures and the substructures of proc and label layout
structures are always local to a C file, so the change in their name is
not an issue in linking. In the presence of --split-c-files, the names of
common structs are unchanged, and the names of the affected debugger data
structures are still module qualified, although now only once. They are
also entirely mmc-generated, and in the absence of gross compiler bugs,
will never cause link errors. This is why util/mdemangle.c has never had
any code to recognize their names; there is no recognition code to update.
The same reasons apply to the profiler's demangler, and as far as I know,
the profiler's demangler is applied only to label names (entry and internal),
which haven't changed.

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