Post subject: Kernel with C# Posted: Fri Nov 25, 2011 1:42 pm
Pro Beta Collector
Joined Sun Feb 01, 2009 4:04 pm
Posts 583
Location Germany , Northrhine-Westphalia
Favourite OS Windows 2000 Professional SP4
Hi, I'm currently working on my OS. After reaching some Milestones (Docs Scriptum in 2007 (basic C Kernel), Docs Research in 2008 (basic C Kernel 2), DocsLinux in 09/10 (Linux Distro)), I now want to start a real Developing , but in C#. Does somebody know, a basic tutorial for creating a C# Kernel. And don't answer with Cosmos! It can't read files or write files, so I would have to write the whole system into one File. OsDev.org only gives me tuts for C Kernel, C++ Kernel , Pascal Kernel and (Free)BASIC Kernel.
Post subject: Re: Kernel with C# Posted: Fri Nov 25, 2011 2:40 pm
Ex OSBA Member
Joined Thu Aug 31, 2006 2:45 pm
Posts 1443
Location in a gadda da vida
Favourite OS Longhorn 4074 & Windows 7
ViennaXP wrote:
And don't answer with Cosmos! It can't read files or write files, so I would have to write the whole system into one File.
Well, you could just implement a file system support, i guess? That's sort of task you need to know how to deal with when writing an OS. I don't think there is actually any other C# kernel than CosmosOS... Besides, writing a kernel in C# doesn't sound like a really good idea... When writing any OS kernel, my advice is to use ASM to start and then start writing C bits as soon as possible...
Post subject: Re: Kernel with C# Posted: Fri Nov 25, 2011 11:16 pm
Amateur Beta Collector
Joined Fri Dec 24, 2010 11:12 pm
Posts 179
Location /dev/chair
Favourite OS DreckigOS v0.007 Alpha
C# needs the .NET to run. It would be exceedingly difficult to do a kernel in C# without using a base made by someone else with .NET support. It would be a lot easier to use C or C++. Or, as fzajac said asm. If you don't have a reason that it needs to be in C#, then use something else. If you have to use C# then you will need to use another language to write .NET into the kernel, which kinda defeats the purpose of the C# kernel...
Post subject: Re: Kernel with C# Posted: Fri Nov 25, 2011 11:23 pm
1337 Beta Collector
Joined Tue Dec 01, 2009 2:56 am
Posts 6087
To be fair, C# is just another dialect of programming - while Microsoft-provided versions depend on .NET, there's nothing saying that someone couldn't create a native language that uses the exact same syntax as C# does.
Also, Singularity is an OS written mainly in managed C#.
Post subject: Re: Kernel with C# Posted: Fri Nov 25, 2011 11:46 pm
Pro Beta Collector
Joined Sun Feb 01, 2009 4:04 pm
Posts 583
Location Germany , Northrhine-Westphalia
Favourite OS Windows 2000 Professional SP4
C # Kernel doesn't mean that it's only in c#. Asm and basic C is still needed . Because I can't find something yet, I try some things on Cosmos (hoping they implant file system support soon , so I haven't to do this ),although it's not my personal perfect solution Let's see what I will do ...
Post subject: Re: Kernel with C# Posted: Sun Nov 27, 2011 6:01 pm
Newbie Beta Collector
Joined Thu Aug 18, 2011 2:55 am
Posts 10
C# needs to be interpreted on-the-go, just like Java so writing an entire kernel in it isn't exactly ideal... Not only that but pretty much the entire framework depends on the Windows kernel already.
Post subject: Re: Kernel with C# Posted: Sun Nov 27, 2011 6:55 pm
Newbie Beta Collector
Joined Tue Nov 22, 2011 6:02 pm
Posts 28
Favourite OS 8G1165
ViennaXP wrote:
hoping they implant file system support soon , so I haven't to do this
I can't see why you would not want to play with filesystems. However, one possible path for you would be to define an abstraction layer for the filesystem (with primitives for operations such as Open(), Read(), Create(), MKDir(), ...). Initially, you would probably implement those through some in-RAM structure (a tree I expect) simulating a non-persistent FS. Once real FAT/ext/whatever support comes in Cosmos, you would simply have to reimplement your own layer in term of the APIs provided by Cosmos. If you start adding fancy features of your own design you might have to play some tricks to have them work on some lower-level FS, but that's where the fun is
Post subject: Re: Kernel with C# Posted: Mon Nov 28, 2011 5:13 pm
Pro Beta Collector
Joined Sun Feb 01, 2009 4:04 pm
Posts 583
Location Germany , Northrhine-Westphalia
Favourite OS Windows 2000 Professional SP4
I just started "Docs OS Research" Development on Cosmos base. Some news will be in a new topic soon, and I will look what I can do to implent File System
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.