Jump to content
cp/m

Sisteme de operare pentru prosti in Cosmos

Recommended Posts

Cu cosmos orice incepator in C# poate sa-si faca un OS.

Pt. asta trebuie sa aveti Visual Express C# 200x si sa downloadati de la: Cosmos (C# Open Source Managed Operating System) - Release: Milestone 4

Si acum incepem:

1. Intrati in VC#

2. Click pe New Project

3. Selectati CosmosBoot, iar la nume alegeti orice vreti. (idei:GutaOS,MissPiranda2000,Salam7Ultimate,etc)

4. In dreapta, la Solution Explorer, dati dublu click pe Program.cs si va aparea ceva de genul:


using System;
using Cosmos.Compiler.Builder;

namespace CosmosBoot1
{
class Program
{
#region Cosmos Builder logic
// Most users wont touch this. This will call the Cosmos Build tool
[STAThread]
static void Main(string[] args)
{
BuildUI.Run();
}
#endregion

// Main entry point of the kernel
public static void Init()
{
var xBoot = new Cosmos.Sys.Boot();
xBoot.Execute();
Console.WriteLine("Welcome! You just booted C# code. Please edit Program.cs to fit your needs");
while (true)
;
}
}
}

5. Acum, Stergeti partea cu Console.WriteLine si bagati codul vostru. Din cate am observat merg aproape toate comenziile din Console.*

6. Acum dati click pe Debug->Start without debugging.

7. Selectati QEMU,Microsoft,Source level none,Traced assemblies all,Miscellanous allways show this window, compile il.

8. Click pe build

9. Acum asteptati ceva vreme

10. Aici e OS-ul.

Concluzie: E mult mai usor decat in asm sau c. Orice incepator ar putea sa faca asa ceva, insa nu prea vad cum ar putea cineva face un OS functional in el. Sper ca v-a placut.

Edited by cp/m
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...