加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

您可以使用Mono / LLVM生成比Microsoft的C#编译器更快的.NET应用

发布时间:2020-12-13 20:10:21 所属栏目:Windows 来源:网络整理
导读:Mono with LLVM项目能够使用LLVM编译器后端,它具有一些非常强大的优化来编译C#.NET项目,使其在计算密集型应用程序中的运行速度提高了20%. Mono is now able to use LLVM as a backend for code generation in addition to Mono’s built-in JIT compiler. T
Mono with LLVM项目能够使用LLVM编译器后端,它具有一些非常强大的优化来编译C#.NET项目,使其在计算密集型应用程序中的运行速度提高了20%.

Mono is now able to use LLVM as a backend for code generation in addition to Mono’s built-in JIT compiler. This allows Mono to benefit from all of the compiler optimizations done in LLVM. For example the SciMark score goes from 482 to 610.

那么可以将现有的C#.NET项目定位到使用Mono / LLVM,以获得更快的Windows或Unix应用程序?这很简单,还是要重构/修改应用程序代码?这是否可以在常规.NET Framework下工作,或者是专门针对Mono Framework项目?考虑到这一点:

This extra performance comes at a cost: it consumes more time and more memory to JIT compile using LLVM.

LLVM后端连接到Mono的JIT编译器(在运行应用程序时将IL程序集转换为本机程序集),因此您需要使用Mono运行应用程序.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读