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

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Mar 10 15:52:09 AEDT 2004


On 08-Mar-2004, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> The first is to get rid of unnecessary casts of constants in data structure
> initialization. When putting an integer constant into a field of type (e.g.)
> MR_uint_least8_t, the general purpose rval output routines we used to use
> cast the constant first to MR_Integer and then to MR_uint_least8_t, even
> though in that specific case neither cast is needed. Similarly, there is no
> need to cast pointer constants (or the integer 0) twice when used in
> contexts where pointers are expected; one cast to the final type is enough.

> 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)?

-- 
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