| |
 |
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.
|
|
|
|
|