[m-dev.] for review: new_object size in words

Julien Fischer juliensf at students.cs.mu.oz.au
Fri Feb 9 15:15:45 AEDT 2001


On Thu, 8 Feb 2001, Fergus Henderson wrote:

> 
> compiler/mlds_to_c.m:
> 	Multiple the size passed to MR_new_object() by
> 	`sizeof(MR_Word)' to convert from words to bytes.

s/Multiple/Multiply/
 
> Index: compiler/mlds_to_c.m
> ===================================================================
> RCS file: /home/mercury1/repository/mercury/compiler/mlds_to_gcc.m,v
> retrieving revision 1.30
> diff -u -d -r1.30 mlds_to_gcc.m
> --- compiler/mlds_to_gcc.m	2001/02/01 01:09:55	1.30
> +++ compiler/mlds_to_gcc.m	2001/02/07 14:52:35
> @@ -2839,28 +2839,10 @@

> -			% XXX something else
> +			% XXX do we need to handle this case?
> +			% I think it's needed for --high-level-data
>  			error("unknown size in MLDS new_object")

It might be nice to be sure of that.  Otherwise it all looks fine.

Julien

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