[Mono-devel-list] Ideas on the ABC removal code

Ben Maurer bmaurer at users.sourceforge.net
Sun May 30 00:19:05 EDT 2004


On Sun, 2004-05-30 at 00:07, Iain McCoy wrote:
> On Fri, 2004-05-28 at 23:13, Ben Maurer wrote:
> > We could make under/overflow easy for you if someone does:
> > 
> > object [] a;
> > foreach (object o in a) {
> > ....
> > }
> > 
> > I think it would be valid for mcs to emit an unsigned comparison in the loop. This would mean for that case you need not worry about overflow.
> > 
> > Of course, some people will still write out manual for loops. I could do some checking to see the frequency of `foreach' vs `for' when looping through an array.
> > 
> > I am not sure why the Jikes code does not handle the overflow case though...
> > 
> > -- Ben
> 
> I might be misunderstanding here, but I thought Massimiliano was talking
> about a runtime optimization. Surely there's no reason to believe that
> the code encountered by the runtime would have been emitted by mcs?

Yes, but there is a good chance that mcs emitted it :-). IMHO, we should
feel free to tune mcs output for the mono runtime as long as we can
still run output from other compilers.

-- Ben




More information about the Mono-devel-list mailing list