摘要: 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 ... 阅读全文
posted @ 2010-03-10 13:47 能巴 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2010-03-10 13:41 能巴 阅读(407) 评论(0) 推荐(0) 编辑
摘要: Kenny Kerr一篇名为C++: The Most Powerful Language for .NET Framework Programming文章中的对比表:描述C++/CLIC#创建引用类型的对象ReferenceType^ h = gcnew ReferenceType;ReferenceType h = new ReferenceType();创建值类型的对象ValueType v... 阅读全文
posted @ 2010-03-10 13:04 能巴 阅读(949) 评论(0) 推荐(0) 编辑
摘要: 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将编译... 阅读全文
posted @ 2010-03-10 12:56 能巴 阅读(358) 评论(0) 推荐(0) 编辑