[Mono-devel-list] incorrect code generated by mcs

Laurent Morichetti l_m at pacbell.net
Tue Nov 4 17:30:23 EST 2003


Hi,
 
I'm trying to get mini to work on 64b and ran accross this problem:
 
for 'int i = array.Length;' mcs generates:
ldlen
stloc.0
 
it really should generate:
ldlen
conv.i4
stloc.0
 
loc0 is of type int32 and my modified mini cannot match 'ldind.i4 (regvar) (ldlen (...))'. (cannot store a nati into an int32)
 
I haven't looked at mcs much and don't know where to start to solve that problem. Can someone take a look at it.
 
Thanks,
-Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20031104/85394a60/attachment.html 


More information about the Mono-devel-list mailing list