[m-dev.] for review: fix init_entry_sl(...) generation.

Tyson Dowd trd at stimpy.cs.mu.oz.au
Wed Jul 15 20:02:07 AEST 1998


On 15-Jul-1998, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> 
> >  	%
> >  	% Add the information for a single proc.
> >  	%
> > -	% Takes the pred_proc_id, proc_label, the number of stack slots,
> > +	% Takes the pred_proc_id, label, the number of stack slots,
> >  	% the code model for this proc, and the stack slot of the succip
> >  	% in this proc (if there is one).
> >  	%
> 
> There are many labels in a procedure, so you have to specify that you
> are taling about the entry label.
> 
> You should also reflect this in the variable names, both here and in the
> other modules.

done.

> 
> > +stack_layout__construct_procid_rvals(Label, Rvals) :-
> > +	( 
> > +		Label = local(ProcLabel, _)
> > +	;
> > +		Label = c_local(ProcLabel)
> > +	;
> > +		Label = local(ProcLabel)
> > +	;
> > +		Label = exported(ProcLabel)
> > +	),
> 
> Don't we already have a procedure for extracting proc_labels from labels?

It appears not (at least, a number of greps have failed to find one).
I'll leave it as is for the moment.

-- 
       Tyson Dowd           # "Bill Gates is a white persian cat and a monocle
                            # away from becoming another James Bond villan."
     trd at cs.mu.oz.au        # "No Mr Bond, I expect you to upgrade."
http://www.cs.mu.oz.au/~trd #                -- Dennis Miller and Terri Branch



More information about the developers mailing list