Monthly Archives: April 2012

NGen misconception

Let me start with a quick intro and background about NGen. With CLR execution model, you write code using your favorite language like C#, VB.NET, C++/CLI and then compiled into a .NET assembly. The .NET assembly contains code in form … Continue reading

Posted in .NET | Leave a comment

Memory Layout of .NET Arrays (x64)

In my previous blog, I described how an arry looks in managed heap. Johnston asked a fair question as to how the same array will be represented in an x64 architecture. The real difference is only between the size of … Continue reading

Posted in Uncategorized | Leave a comment

Memory layout of .NET Arrays

This post is inspired by Karl Seguin‘s blog regarding Why Arrays Normally Start At Zero where he explained some fundamental concepts behind arrays and  pointer arithmetics. He used a simple yet powerful example from C language, although the concept itself could be applied to any other … Continue reading

Posted in .NET | 3 Comments