im writing an OS
im writing an OS
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?
Re:im writing an OS
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
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
Re:im writing an OS
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.
Re:im writing an OS
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)
Re:im writing an OS
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.
Re:im writing an OS
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.
Re:im writing an OS
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.