[Mono-list] IL code references to corlib and mscorlib

Varga Zoltan vargaz@freemail.hu
Wed, 16 Jul 2003 13:14:05 +0200 (CEST)


                                                 Hi,

   This is caused by a bug in monodis: sometimes it prints
out corlib,
sometimes mscorlib.=20

                       bye

                             Zoltan

Mark Easton <measton@tebiki.co.uk> =EDrta:

> I'm trying to understand how IL works and have come a cropper.
>=20
> When I look at some IL code that was generated by mcs I
can see that is
> references mscorlib for class declarations e.g.=20
>=20
>     .class private auto ansi beforefieldinit ComputerName
extends
> [mscorlib]System.Object=20
>=20
> but that it then references corlib in the rest of the code
e.g.=20
>=20
>     IL_0007: call void class
[corlib]System.Console::WriteLine(string)
>=20
> While I understand that the mono runtime must map mscorlib
references to
> corlib, I have no idea how other runtimes, such as MS.NET
or PNET, can
> deal with references to corlib?
>=20
> Any help would be most appreciated as my head is really
getting twisted
> into knots now - and my wife insists that's her job.
>=20
> TIA
>=20
> Mark
>=20
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>=20
>=20
>=20