[问题]关于编译器的几个问题 [英] [QUESTION] Few questions about a compiler

查看:99
本文介绍了[问题]关于编译器的几个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先:这不是代码问题,所以请忽略,如果您这么认为,这只是提供信息。



我是3年的程序员,其中2年c#也许在3年后询问关于编译器的问题可能是一种耻辱,但我仍然必须知道这个:



1:我使用Visual Studio 2015,我在哪里可以看到我的当前的编译器?

2:我可以在visual studio中下载并设置一些新的编译器吗?

3:编译器有什么不同吗?

- 我听说,编译器有所不同,但究竟有多大?因为无论采用何种方法翻译代码,最后都必须是二进制数据...

4:为什么我应该选择不同的编译器(如果可能的话),如果可以,给出一些例子。

first: this is not problem with code, so ignore if you think so, this is just informative.

Im 3 years programmer, in which 2 years c#, maybe its a shame to ask question about compiler after 3 years but still i just must know this:

1: Im using Visual studio 2015, where can i see my the current compiler?
2: Can i download and set some new compiler in visual studio?
3: Are there much difference in the compilers?
- i heard that, compilers make difference, but how big exactly? since on whatever method its translating the code, at the end, it must be binary data...
4: Why should i choose different compilers (if possible), give some example if you can.

推荐答案

1)嗯......技术上你不能看到它 - 它只是磁盘上的字节集合。

但是......它被称为CSC.EXE,您可以在 C:\ WINDOWS \ MicroStoswork \ Framework 目录下的各种文件夹中找到它 - 每个版本都在一个单独的文件夹中。

2,3,4)为什么?没有很多其他C#编译器--MONO有一个,XAMARIN也是如此,但说实话,就IL输出而言,它们非常多。当我们谈论C和C ++的时候,有很多不同的编译器,每个都比其他编译器更好吃了一件事 - 但现在它几乎都是Windows下的MS,除非你在谈论编译不同的目标处理器。由于C#编译为IL,因此不会发生这种情况。
1) Well...technically you can't "see" it - it's just a collections of bytes on the disk.
But...it's called "CSC.EXE" and you'll find it in various folders under the C:\WINDOWS\Microsoft.NET\Framework directory - each version in a separate folder.
2, 3, 4) Why? There aren't many other C# compilers - MONO has one and so does XAMARIN, but to be honest they are much of a muchness as far as IL output goes. When we were talking about C and C++ there were a large number of different compilers, and each was "better" ate one thing than the others - but now it's pretty much all MS under windows unless you are talking about compiling for a different target processor. Since C# compiles to IL, that situation doesn't really occur.


这篇关于[问题]关于编译器的几个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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