The C# compiler and memory management
I'm doing a compiler design class on the topic of memory management. I am reading about garbage collection and noticed that most of that low level stuff takes place with C/C++ code. I have a few questions about the c# compiler.
- Was .net framework part for memory management written in c/c++?
- How does .net manages memory?
- Does their internal garbage collection uses malloc()?
- What method of garbage collection does the .net fr开发者_如何转开发amework use?
I'd probably use answers to generate new questions but I'm not sure If I should create a new question or edit this one.
Please see:
MSDN Magazine: Garbage Collection: Automatic Memory Management in the Microsoft .NET Framework
.NET Framework Developer's Guide: Automatic Memory Management
.NET Framework Developer's Guide: Garbage Collection
Understanding Garbage Collection in .NET
Much of this type of information can be found in CLR via C# (or from Amazon). Note that it sounds like the book will be updated for .NET 4.0.
精彩评论