学习单声道源代码 [英] Learning Mono Source Code

查看:167
本文介绍了学习单声道源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我感兴趣的东西贡献给单声道无论是文档或什么都。作为第一步,我下载的源代码树通过代码去。不过,我想,如果有一个人会花足够的时间去了解项目结构,这将有助于大家在这里过。 ?任何一个点我哪里出了项目结构很好的解释

I am interested in contributing something to mono whether it is a documentation or what ever. As a first step, I downloaded the source tree for going through the code. However, I thought if some one would've spend enough time to understand the project structure that would help everyone here. Any one point me out where the project structure is well explained?

请注意:这不是问题的重复的 http://stackoverflow.com/questions/1655090/mono-source-code-walkthrough-tutorial ,回答这个问题并不足够我的意料。

NOTE: This is not a duplicate of question http://stackoverflow.com/questions/1655090/mono-source-code-walkthrough-tutorial, the answer to this question doesn't suffice my expectation.

推荐答案

您应该具有的签出颠覆的结帐网址这里):

You should have checked out (subversion checkout URLs here):


  • 干线/ libgdiplus

这是使用的图书馆由System.Drawing中。

This is a library used by System.Drawing.

干线/单声道

这是我们所说的单声道的运行即可。主要包含C源代码。在该目录下,你可以找到:

This is what we call the Mono runtime. Contains mainly C source code. Under this directory you can find:


  • 数据/ :对于不同版本的几个配置文件(1.x中,2.X,...)

  • MSVC * / :。Visual Studio解决方案文件来构建单声道运行时

  • libgc / :在贝姆垃圾收集器源

  • 单/ :单声道运行时资源。

    • 迷你/ :JIT源代码

    • 元/ :这些都是几乎所有的单声道运行时(编组,线程池,插座的I / O,文件I / O,控制台I / O,应用领域,GC,性能计数器,...)使用的功能。这或多或少一架C文件中的每个

    • UTIL :。辅助功能

    • IO-层/ :Win32的I / O仿真功能

    • data/: a few configuration files for different version (1.x, 2.x,...).
    • msvc*/: Visual Studio solution files to build the Mono runtime.
    • libgc/: the Boehm Garbage Collector sources.
    • mono/: Mono runtime sources.
      • mini/: JIT source code
      • metadata/: these are almost all the functions used by the Mono runtime (marshaling, thread pool, socket I/O, file I/O, console I/O, application domains, GC, performance counters,...). It's more or less one C file each.
      • util: miscellaneous functions.
      • io-layer/: Win32 I/O emulation functions.

      干线/ MCS

      这就是C#编译器,在类库,类库测试和其他工具

      This is where the C# compiler, the class libraries, class libraries tests and other tools are.


      • 类/ :每个装配一个文件夹。他们每个人都包含在目录中每个程序拆分与命名空间名称(即系统/ System.Configuration 的等),通常一个测试目录过的源代码。唯一的命名异常为 mscorlib程序 corlib

      • class/ : One folder per assembly. Each of them contains the source code for each assembly split in directories with the namespace name (ie, System/System.Configuration and so on) and usually a Test directory too. The only naming exception is mscorlib whose corresponding folder is called corlib.

      例如,如果您要查看其相应的文件夹被称为对源代码的 System.Net.HttpWebRequest 的,这是在 System.dll中的组件,你去的干线/ MCS /班/系统/ System.Net 的有shoould是命名的 HttpWebRequest.cs 的包含您正在寻找的代码。

      For example, if you want to see the source code for System.Net.HttpWebRequest, which is in the System.dll assembly, you go to trunk/mcs/class/System/System.Net and there shoould be a file named HttpWebRequest.cs containing the code you're looking for.

      MCS / :源代码为C#编译器(MCS,系膜细胞,平滑肌细胞,契......)

      mcs/: the sources for the C# compilers (mcs, gmcs, smcs, dmcs...)

      有周围有很多更多的目录,但这些都是,你应该寻找C和C#代码。另外,我建议的主干的为结账,因为你将会得到最先进的最新源的方式。

      There are a lot more directories around, but those are where you should look for the C and C# code. Also, I suggested trunk for the checkout, since you will get the most up-to-date sources that way.

      更新单现居 github上 MCS 的已经融入的库。

      Update: Mono resides now in github and mcs has been integrated into the mono repository.

      这篇关于学习单声道源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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