[m-dev.] for review: removing redundant inst info from layout structures

Fergus Henderson fjh at cs.mu.OZ.AU
Fri May 28 16:47:50 AEST 1999


On 06-May-1999, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> Index: library/builtin.m
> ===================================================================
> RCS file: /home/mercury1/repository/mercury/library/builtin.m,v
> retrieving revision 1.11
> diff -u -b -u -r1.11 builtin.m
> --- builtin.m	1999/04/08 08:42:01	1.11
> +++ builtin.m	1999/05/03 09:03:17
> @@ -296,6 +296,66 @@
>  		mkbody(MR_TYPE_CTOR_LAYOUT_VOID_VALUE))
>  };
>  
> +	/* type_ctor_layout for `succip' (only used by accurate gc) */
> +
> +MR_MODULE_STATIC_OR_EXTERN
> +const struct mercury_data___type_ctor_layout_succip_0_struct {
> +	TYPE_LAYOUT_FIELDS
> +} mercury_data___type_ctor_layout_succip_0 = {
> +	make_typelayout_for_all_tags(TYPE_CTOR_LAYOUT_CONST_TAG, 
> +		mkbody(MR_TYPE_CTOR_LAYOUT_SUCCIP_VALUE))
> +};
> +
> +	/* type_ctor_layout for `hp' (only used by accurate gc) */
>
> +MR_MODULE_STATIC_OR_EXTERN
> +const struct mercury_data___type_ctor_layout_hp_0_struct {
...

If these are only used by accurate GC, shouldn't they be inside
`#ifdef NATIVE_GC'?

Otherwise they will increase the code size for hello world
(which is important for the PalmPilot port! ;-).

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list