本文介绍了C ++托管代码编译器比C#更快吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 嗨新闻组 c ++编译器在执行时生成的代码比C# 编译器更快吗? c ++编译器比C#编译器有更多的优化吗? 提前谢谢!Hi newsgroupDoes the c++ compiler generate faster code at execution time than the C#compiler?Does the c++ compiler have more optimisations than the C# compiler?Thanks in advance!推荐答案 嗯,你必须考虑C#是专门为 而设计的..net框架,从而允许C#编译器设计为吐出 '更好''(注意'')MSIL。 两个编译器的托管C ++ en VB.net有遗留问题 可能(可能,不会)导致质量较差的MSIL - NULLWell, you have to consider that C# was designed specifically for the..net framework, thus allowing the C# compiler to be designed to spitout ''better'' (note the '') MSIL.Both the compilers for managed C++ en VB.net have legacy issues thatmight (might, not will) lead to lesser-quality MSIL--NULL C#专为框架设计的事实意味着什么。 您可以为.NET编写COBOL编译器(使用System.Reflection.Emit 命名空间)它比C#编译器更有效率(从查看由C#编译器生成的优化IL开始,只是 可以是唯一的东西)改进了它的堆栈用法。The fact that C# was designed specifically for the framework means nothing.You could write a COBOL compiler for .NET (using the System.Reflection.Emitnamespace) that''s even more efficient than the C# compiler (from looking atthe optimized IL produced by the C# compiler, just about the only thing thatcan be improved is it''s usage of the stack). 这篇关于C ++托管代码编译器比C#更快吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-02 16:00