[m-rev.] for review: fix .maxstack output and update IL instruction set

Tyson Dowd trd at cs.mu.OZ.AU
Tue May 29 23:06:16 AEST 2001


Since this only affects the .NET backend, and probably doesn't need a
review anyway, I'll commit it now and address any comments later.

On 28-May-2001, Tyson Richard DOWD <trd at cs.mu.OZ.AU> wrote:
> Hi,
> 
> It was annoying me that sample code I was generating for the .NET paper
> had hard-coded nasty magic numbers in it...
> 
> ===================================================================
> 
> 
> Estimated hours taken: 2
> Branches: main
> 
> Fix the hard-coding of .maxstack directives in the .NET backend.
> We now generate the correct number by traversing the instruction set and
> looking for the maximum stack depth, rather than just assuming 100 will be
> large enough.
> 
> compiler/ilds.m:
> 	Add code to calculate the maximum stack depth.
> 	Also fix some missing instructions in the instruction set, and
> 	remove some unused instructions.  The instruction set is now
> 	up-to-date with the documentation at around October 2000.
> 
> compiler/il_peephole.m:
> compiler/ilasm.m:
> 	Handle the changes to the instruction set.
> 
> compiler/mlds_to_il.m:
> 	Calculate maxstack instead of hard-coding it.

-- 
       Tyson Dowd           # 
                            #  Surreal humour isn't everyone's cup of fur.
     trd at cs.mu.oz.au        # 
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
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