BetaArchive Logo
Total Current Archive Size: 4765.54GB in 15409 files
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 6d, 0h, 18m | CPU: 10% | MEM: 4850MB of 12279MB used
{The community for beta collectors}

Post new topic Reply to topic  [ 9 posts ] 
Author Message
 PostPost subject: Kernel with C#        Posted: Fri Nov 25, 2011 1:42 pm 
Pro Beta Collector
Pro Beta Collector
User avatar
Offline

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.

_________________
Image


Top  Profile  WWW
 PostPost subject: Re: Kernel with C#        Posted: Fri Nov 25, 2011 2:40 pm 
Ex OSBA Member
Ex OSBA Member
User avatar
Offline

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...

_________________
Image
ImageImageImageImageImageImageImage


Top  Profile  WWW
 PostPost subject: Re: Kernel with C#        Posted: Fri Nov 25, 2011 5:38 pm 
Amateur Beta Collector
Amateur Beta Collector
Online

Joined
Tue Sep 21, 2010 12:47 pm

Posts
220

Favourite OS
IRIX 5.3 XFS 12/94
I don't understand your problem: which piece of code do you expect to handle access to files, if not the kernel you are writing?


Top  Profile
 PostPost subject: Re: Kernel with C#        Posted: Fri Nov 25, 2011 11:16 pm 
Amateur Beta Collector
Amateur Beta Collector
User avatar
Offline

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...

_________________
GAT C++++$
DreckigOS - Now bigger and better:
https://github.com/WizardOfHaas/DreckigOS


Top  Profile  WWW
 PostPost subject: Re: Kernel with C#        Posted: Fri Nov 25, 2011 11:23 pm 
1337 Beta Collector
1337 Beta Collector
Offline

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#.

_________________
Goodbye.


Top  Profile
 PostPost subject: Re: Kernel with C#        Posted: Fri Nov 25, 2011 11:46 pm 
Pro Beta Collector
Pro Beta Collector
User avatar
Offline

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 :s
Let's see what I will do ...

_________________
Image


Top  Profile  WWW
 PostPost subject: Re: Kernel with C#        Posted: Sun Nov 27, 2011 6:01 pm 
Newbie Beta Collector
Newbie Beta Collector
Offline

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.


Top  Profile
 PostPost subject: Re: Kernel with C#        Posted: Sun Nov 27, 2011 6:55 pm 
Newbie Beta Collector
Newbie Beta Collector
Offline

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 :P


Top  Profile
 PostPost subject: Re: Kernel with C#        Posted: Mon Nov 28, 2011 5:13 pm 
Pro Beta Collector
Pro Beta Collector
User avatar
Offline

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

_________________
Image


Top  Profile  WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 




Who is online

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

Search for:
Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2013

 

Sitemap | XML | RSS