Sams .NET Stuff : All my .NET stuff
Updated: 10/1/2002; 12:57:19 PM.

 

Categories:
Personal Friends:

Subscribe to "Sams .NET Stuff" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 
 

Saturday, September 07, 2002

Code generation: C# vs. VB.NET.

I spent a bit of time today investigating the CIL generated by the VB.NET compiler vs. the CIL generated by the C# compiler. Consider the following VB.NET code:....As you can see, the VB.NET code allocates space for an additional local variable that is never used. This is behavior is consistent between debug and release builds. I'm rather surprised by this behavior, but I'm certain that the JIT catches the unused variable and allocates space in the stack frame appropriately.[IUnknown.com: John Lam's Weblog on Software Development]


2:45:01 PM    


© Copyright 2002 Sam Gentile.



Click here to visit the Radio UserLand website.

 


September 2002
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Aug   Oct