Hi Peter, I think I've solved my own question. Those steps were involved in
getting the info into the variable I declared. I guess I was wondering why it
didn't just optimize it such that the code was as though you just called
colsole.write(6) but I did ask it to put 6 in a variable and use that for the
write function. This makes sense. I wonder why there isn't a stloc op that
copies from the stack (doesn't pop after. This would avoid having to
immediately replace what you took off in this scenario.
-Ben
Greg Young describes how to configure a project to run and disassemble code
in DEBUG mode that is optimized to more closely evaluate your program based
on the code users would get
here:http://codebetter.com/blogs/gregyoung/archive/2006/06/09/146298.aspx
It's decidedly C#-skewed; but, I imagine most of it would apply VB 2005 as
well. He gets a slightly lower level (by debugging x86 assembly); but you
can ignore that stuff if you want and simply look at ildasm/Reflector results.

Signature
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#
> Hi Peter, I think I've solved my own question. Those steps were involved in
> getting the info into the variable I declared. I guess I was wondering why it
[quoted text clipped - 57 lines]
> > > >
> > > > -Ben
Greg Young - 26 Jul 2006 21:41 GMT
Ah yes it was a bit C# skewed .. I will try to get some VB.NET appended to
it as it applies there as well.
Cheers,
Greg
> Greg Young describes how to configure a project to run and disassemble
> code
[quoted text clipped - 79 lines]
>> > > >
>> > > > -Ben
Peter Ritchie [C# MVP] - 26 Jul 2006 22:01 GMT
I'm too lazy to check (I didn't install VB on this computer but I have access
to one that does), all the configuration settings you detailed are identical
in VB, no?

Signature
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#
> Ah yes it was a bit C# skewed .. I will try to get some VB.NET appended to
> it as it applies there as well.
[quoted text clipped - 85 lines]
> >> > > >
> >> > > > -Ben
Greg Young - 26 Jul 2006 22:17 GMT
Yep sure are.
> I'm too lazy to check (I didn't install VB on this computer but I have
> access
[quoted text clipped - 100 lines]
>> >> > > >
>> >> > > > -Ben