amaneureka / AtomOS

A multitasking monolithic Kernel based x86 targeting Operating System written in C# from scratch aiming for high-level implementation of drivers in managed environment.
http://www.atomixos.com
BSD 3-Clause "New" or "Revised" License
1.26k stars 85 forks source link

Standard Library #38

Closed Lewiscowles1986 closed 7 years ago

Lewiscowles1986 commented 7 years ago

Where is the standard library for C#? AFAIK compiling most C# projects requires a standard library / set of API's to do anything useful.

SplittyDev commented 7 years ago

The custom compiler built by the AtomOS team handles a small subset of the C#/IL functionality and the rest of the functions are plugged. That means, that they are implemented using that subset of the library that works with the compiler, and the original function calls are then replaced with the plugs.

The original .NET framework is not available, only the plugged subset of the framework.

amaneureka commented 7 years ago

This should clear your doubts https://github.com/amaneureka/AtomOS/tree/master/src/Compiler/Atomixilc/Lib

Lewiscowles1986 commented 7 years ago

@SplittyDev The first thing I thought when I heard about the OS was, "Is it an OS or an app?" followed by "How will the kernel run without a C# runtime?" (I thought it compiled to IL / Bytecode.) I looked through the code and tbh didn't find the plugs, so I raised this. It's still a very cool idea and thanks for the link to the lib @amaneureka

So really there are a few projects (big-picture):

amaneureka commented 7 years ago

Right. I'll include a page on compiler working on wiki itself. (noted)

amaneureka commented 7 years ago

@Lewiscowles1986 Please check this wiki page. Compiler

jtgame5 commented 7 years ago

Okay

On Mar 8, 2017 6:00 PM, "Aman Priyadarshi" notifications@github.com wrote:

@Lewiscowles1986 https://github.com/Lewiscowles1986 Please check this wiki page. Compiler https://github.com/amaneureka/AtomOS/wiki/Compiler

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/amaneureka/AtomOS/issues/38#issuecomment-285198277, or mute the thread https://github.com/notifications/unsubscribe-auth/ARqe97hRneiRtl7hiurmqj7qiPJLiqtRks5rjzMPgaJpZM4MTYej .

Lewiscowles1986 commented 7 years ago

That is some of the nicest documentation, closing :wink: