[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]Register based bytecode stuff...

From: Gopz
Subject: Re: [DotGNU]Register based bytecode stuff...
Date: Thu, 2 May 2002 18:47:55 +0530
User-agent: Mutt/1.2.5i

On Thu, May 02, 2002 at 03:04:20PM +1000, Rhys Weatherley wrote:

> This allows the code generator to remove the 
> "stloc t, ldloc t" pair to give the
> correct stack machine code:

Please try compiling the following code in cscc please

>>      public static byte[] new_byte_array(int len)
>>      {
>>              byte[] c=new byte[1024];
>>              return c;
>>      }

I found the results to be a bit -naive- :)

(not that it matters much for me)

>>      ldc.i4  1024
>>      newarr  ['mscorlib']'System'.'Byte'
>>      stloc.0
>>      ldloc.0
>>      ret

Get what I mean ?.

This optimisation is currently reduced to a sed script in my box , 
but I would like this into the cscc someday.......


PS: makes this random sig even more significant
He who foresees calamities suffers them twice over.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]