I think that if you guys could create a tool that will let folks do IL-level debugging, that it will do most of what folks would want in a simulator. The trick to building such a tool would be to show the contents of the CIL stack when what you're really doing is stepping through JIT'ed x86 code ... I suspect that the difficulty in doing just this was what prevented VS.NET from doing the same thing ... ;(
-John http://www.iunknown.com -----Original Message----- From: Peter Drayton [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 10:24 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Has anyone ever written code for CLR simulation for learning purpose? I'm not aware of anyone doing a graphical simulation of interpreting IL yet, but I can't think of any real obstacle to doing one. Of course, this wouldn't really tell you much about the MS CLR, since it does JIT compilation, not IL interpretation. However, if you didn't care about performance, you could definitely interpret IL, as evidenced by the interpreters in Mono and Portable.NET. The JVM simulations at artima.com are neat. JasonW and I had casually discussed doing something similar (a set of software toys inspired by artima.com/Bill Venners' book) as an add-on to the AW CLR Internals book we're working on, but we weren't sure if there was enough interest to warrant the (fairly substantial) effort. This seemed especially true given the presence of the 'real' (almost) source code in the Rotor project. What does the community think? --Peter http://staff.develop.com/peterd > -----Original Message----- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Hun Boon Teo > Sent: Friday, April 19, 2002 1:17 AM > To: [EMAIL PROTECTED] > Subject: Has anyone ever written code for CLR simulation for > learning purpose? > > > Hi, > I wonder anyone has taken the challenge to write code with > CLR simulation > (execution of il code, loading of assembly etc...) in > graphical display for > people to learn the internal of the CLR and the il language > for education > purpose? I saw some of the java code simulations for JavaVM at > http://www.artima.com/jvm/index.html . As the il is not meant to be > interpreted by the CLR, is it going to be more difficult to write > simulation code in .NET as compare to the JavaVM? Anyone has > any comments? > Thanks. > > Best Regards, > Hun Boon Teo > > You can read messages from the DOTNET archive, unsubscribe > from DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.