New OS idea
Posted: Sat Aug 28, 2004 10:52 am
Hi all!
I'm new to this forum, and this is my first post.
I have in mind a new type of operating system, and I wanted to ask around if it could be done and how well it will work.
Here's a little list of main features and differences between my os and other oses:
It's not a monolithic kernel, it's not a microkernel. It's a self-recompiling kernel. ( more on this later... )
It would only use kernel mode. No user space.
No need to use MMU... it handles memory in a different way.
Ok so...
The kernel and all the programs that will run under it, are a SINGLE, self-recompiling program.
I'm currently developing a new macroassembly-style language to use it.
When the kernel loads, the compiler will automatically find what type of architecture it is running on, then first recompile itself ( so we'll have an optimized compiler that will compile only for that arch ) and then recompile the kernel on-the-fly for that architecture. Then, all the drivers or programs ( called simply routines/subroutines at the moment ) will be compiled and loaded on-the-fly.
I think ( I'm not a low-level programming expert ) that this will speed up things because: there will not be arguments passing, any program can access directly all the memory ( mapped as a single block ).
It will open doors to a new style of programming, because a program can have as much options as it needs, but be loaded only with the necessary at the moment. Then if you need another option, the compiler will compile and link it at runtime.
Naturally I must consider memory protection to make sure a malicious or bad program will not overwrite reserved memory areas... The compiler will take care of this.
It's only a general description, but I can reply with more and most in-depth arguments if asked.
What do you think?
Thanks for reading all this
I'm new to this forum, and this is my first post.
I have in mind a new type of operating system, and I wanted to ask around if it could be done and how well it will work.
Here's a little list of main features and differences between my os and other oses:
It's not a monolithic kernel, it's not a microkernel. It's a self-recompiling kernel. ( more on this later... )
It would only use kernel mode. No user space.
No need to use MMU... it handles memory in a different way.
Ok so...
The kernel and all the programs that will run under it, are a SINGLE, self-recompiling program.
I'm currently developing a new macroassembly-style language to use it.
When the kernel loads, the compiler will automatically find what type of architecture it is running on, then first recompile itself ( so we'll have an optimized compiler that will compile only for that arch ) and then recompile the kernel on-the-fly for that architecture. Then, all the drivers or programs ( called simply routines/subroutines at the moment ) will be compiled and loaded on-the-fly.
I think ( I'm not a low-level programming expert ) that this will speed up things because: there will not be arguments passing, any program can access directly all the memory ( mapped as a single block ).
It will open doors to a new style of programming, because a program can have as much options as it needs, but be loaded only with the necessary at the moment. Then if you need another option, the compiler will compile and link it at runtime.
Naturally I must consider memory protection to make sure a malicious or bad program will not overwrite reserved memory areas... The compiler will take care of this.
It's only a general description, but I can reply with more and most in-depth arguments if asked.
What do you think?
Thanks for reading all this