im writing an OS

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
firzen

im writing an OS

Post by firzen »

hi, ive already written a small kernel in VB, but when i copy it to a floppy, and try to boot off the floppy, i get errors. can anyone help me?
Slasher

Re:im writing an OS

Post by Slasher »

hi,
you can't write an os with VB cause it makes window system calls. you need to use system programming languages like c,pascal,assembly or any other that allows seperate compiling and linking and also allows you to specify the library of object code to use while linking
Explore this site using the search and you will see a lot of info on starting!!:) ;D
PlayOS

Re:im writing an OS

Post by PlayOS »

[attachment deleted by admin]
Mr_Spam

Re:im writing an OS

Post by Mr_Spam »

I belive it is possable to use VB to write an OS, because at one point after its all done and compiled, a binary file is a binary file, however, the program written in VB mustn't have any calls to windows DLL's, which is virtually impossable with VB. As well as writing kernals in C, Pascal, java or any other language with a standard libary, those libary's bust be rewritten as not to call any other OS (windows or unix or other) commands or files. essentually what you'd have to do to write an OS in VB is rewrite all the windows libarys it uses as not to call windows DLL's, which in my opinion, is not not nearly worth the time or effort.
Okiesmokie

Re:im writing an OS

Post by Okiesmokie »

Not true. If you make just a plain VB app (just a blank window) and try to run it on a windows machine that doesnt have the VB Runtime files, the app wont load, so in the end, you need more then just a binary to run a VB App, And you cant program in VB in linux either, because it is an OS Dependant language (windows)
Mr_Spam

Re:im writing an OS

Post by Mr_Spam »

The form relise on windows libarys, IF you rewrite those libarys so they dont realy on on any OS, its the same as rewriting the C libarys so they dont realy on as OS. If thats done and it works, its not even worth calling it VB any more.... Theoletically its possable.... just as writing an executable program in notepad (with no compiler or linker). Its a pure waist of time to try though. Your way better off learning C.
Fabio

Re:im writing an OS

Post by Fabio »

Would it be possible to write an operating system in perl. You could use perl2exe or a program like it i suppose to be able to use it without the active state libraries.
jrfritz

Re:im writing an OS

Post by jrfritz »

You will need to create a bootloader, simple kernel, etc to support the stuff that a exe file needs ( load addr ), file system, idt, gdt, etc.
Post Reply