-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and improve documentation (#1256)
- Loading branch information
1 parent
66d6d8a
commit 295584e
Showing
31 changed files
with
331 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
###################### | ||
Compiler Optimizations | ||
Compiler optimizations | ||
###################### | ||
|
||
Optimizations | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
################### | ||
Create core library | ||
################### | ||
|
||
To implement its own core library, MOSA generates a "dummy" one that includes all the public APIs but without the actual implementation code. The **Create core library** utility takes care of doing that work. To clone the official .NET core library repository, it requires ``git``. Here are the available command line arguments for the utility: | ||
|
||
.. csv-table:: | ||
:header: "Short name","Long name","Description" | ||
:widths: 100, 100, 50 | ||
|
||
-o,\-\-output,Sets the output directory. | ||
-c,\-\-copy-files,"If enabled, only copies and patches the source files and stops." | ||
|
||
To run the utility, simply execute the following command on any platform: | ||
|
||
.. code-block:: bash | ||
dotnet bin/Mosa.Utility.CreateCoreLib.dll -o Output | ||
The process can take between a few seconds to a few minutes depending on the speed of your internet connection and PC. At the end, you should get a ``System.Runtime.dll`` file at the directory where you executed the utility. At the end, you should get a console output that looks like this: | ||
|
||
.. code-block:: text | ||
Cloning .NET runtime GitHub repository... | ||
Cloning into 'runtime'... | ||
remote: Enumerating objects: 65953, done. | ||
remote: Counting objects: 100% (65953/65953), done. | ||
remote: Compressing objects: 100% (42248/42248), done. | ||
Receiving objects: 100% (65953/65953), 88.04 MiB | 9.16 MiB/s, done. | ||
remote: Total 65953 (delta 25898), reused 34761 (delta 20956), pack-reused 0 (from 0) | ||
Resolving deltas: 100% (25898/25898), done. | ||
Updating files: 100% (58901/58901), done. | ||
Parsing input files... | ||
Patching System.DirectoryServices.manual.cs... | ||
Patching System.Net.Http.Json.cs... | ||
Patching System.Net.Http.WinHttpHandler.cs... | ||
Patching System.Configuration.ConfigurationManager.cs... | ||
Patching System.Data.Common.cs... | ||
Compiling source files... | ||
Decompiling assembly... | ||
Removing project file... | ||
Removing Properties folder... | ||
Patching System.Collections.Generic/PriorityQueue.cs... | ||
Patching System.Collections.Generic/PriorityQueue.cs... | ||
Patching System/Nullable.cs... | ||
Patching System/ReadOnlySpan.cs... | ||
Patching System.Runtime.InteropServices/Marshal.cs... | ||
Patching System.Runtime.InteropServices/MemoryMarshal.cs... | ||
Patching System.Runtime.CompilerServices/Unsafe.cs... | ||
Patching System.Numerics/Vector.cs... | ||
Patching System.Runtime.Intrinsics/Vector64.cs... | ||
Patching System.Runtime.Intrinsics/Vector128.cs... | ||
Patching System.Runtime.Intrinsics/Vector256.cs... | ||
Patching System.Runtime.Intrinsics/Vector512.cs... | ||
Patching System.Threading/Volatile.cs... | ||
Patching System.Threading/Interlocked.cs... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#################### | ||
Optimization Options | ||
Optimization options | ||
#################### | ||
|
||
Here are the available optimization options for the MOSA compiler: | ||
|
||
.. image:: images/mosa-optimization-options.png | ||
.. image:: images/mosa-optimization-options.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.