Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What language is Mono written in and how do I read the source code?

Tags:

c#

clr

mono

I want to read the source code for Mono. I looked up this URL and there are several folders here.

  1. What language is the Mono project written in?

  2. Which folder/file do I download to read its source?

From looking at the folder hierarchy, it appears (although my assumption could be wrong) that it has been written in several languages and that I could download any one of them.

But I'd just like to make sure.

like image 692
Water Cooler v2 Avatar asked Sep 02 '12 14:09

Water Cooler v2


People also ask

What version of C# does mono use?

The Mono C# compiler is considered feature complete for C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0 and C# 6.0 (ECMA) and it has partial support for C# 7.

What is MCS C#?

mcs is the Mono C# compiler, an implementation of the ECMA-334 language specification. You can pass one or more options to drive the compiler, and a set of source files. Extra options or arguments can be provided in a response file. Response files are referenced by prepending the @ symbol to the response file name.


1 Answers

You'll want the mono subdirectory, pick the version you are interested in.

The equivalent of the CLR and the jitter were written in C. You'll find it in the mono/mini subdirectory.

The C# compiler was written in C#. You'll find it in the mcs/mcs subdirectory.

The framework classes were written in C#. You'll find them in the mcs/class subdirectories.

like image 147
Hans Passant Avatar answered Nov 14 '22 21:11

Hans Passant