性能:编译在VS,在Mono运行在Windows和Linux [英] Performance: Compile in VS, Run in Mono on Windows and Linux

查看:370
本文介绍了性能:编译在VS,在Mono运行在Windows和Linux的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下问题:

  1. 是否有可能用VS.NET编译C#项目,并在单声道运行呢?
  2. 是否有与方法1相关(VS与单编译器编译)任何性能优势?
  3. 那么在Linux上运行的输出的.exe / .dll?什么是相关的性能特点?

感谢

解决方案
  1. 是的,你可以做到这一点。它应该工作,除非code使用未在单实现了一些框架内容。

  2. 这并不是说我知道。

  3. 不知道的#3,#1的区别是什么。如果你指的是使用单声道到Windows上编译,然后将其移植到Linux,它仍然应该工作一样。这两种编译器本质上产生相同的IL code。

I have the following questions:

  1. Is it possible to compile a C# project using VS.NET, and run it on mono?
  2. Are there any performance benefits associated with approach 1 (vs compiling with the mono compiler)?
  3. What about running the output .exe/.dll on linux? And what are the associated performance characteristics?

Thanks

解决方案

  1. Yes, you can do that. It should work unless the code uses some framework elements that are not implemented on mono.

  2. Not that I am aware of.

  3. Not sure what the difference between #3 and #1 is. If you are referring to using mono to compile on Windows, then porting it to linux, it should still work the same. Both compilers generate essentially the same IL code.

这篇关于性能:编译在VS,在Mono运行在Windows和Linux的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆