摘要:
1. Why need it?Mainly it works as the bridge between managed code and native c++ code, as it's the only graceful way to be able to talk to both sides.Using /cli compiler option, it can generate mixed ... 阅读全文
摘要:
The syntax for stack versus heap allocation of C++, C++/CLI and CSharpNative C++ lets you choose where to create a given object.Any type can be allocated on the stack or the CRT heap.// allocated on t... 阅读全文
摘要:
Kenny Kerr一篇名为C++: The Most Powerful Language for .NET Framework Programming文章中的对比表:描述C++/CLIC#创建引用类型的对象ReferenceType^ h = gcnew ReferenceType;ReferenceType h = new ReferenceType();创建值类型的对象ValueType v... 阅读全文
摘要:
JIT compile when calling a specific method first time; NGen.exe can directly convert whole IL exe application to be 汇编 based.JIT与NGen.exe比较JIT运行时编译,NGen.exe在运行前编译;JIT每次编译需要的方法,NGen.exe一次编译整个程序集;JIT将编译... 阅读全文