steps in development

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
User avatar
yemista
Member
Member
Posts: 299
Joined: Fri Dec 26, 2008 12:31 pm
Location: Boston
Contact:

steps in development

Post by yemista »

Im getting to the point where Im able to start coding a real kernel, but I was just wondering, is it better to write the memory manager before the setting up a multiple processes? Im more inclined to work on process switching first since I know more about it, but Im not sure if it might be wiser to write the memory manager, of course Id have a very primitive memory manager to do this, but itd be nothing more than handing out same size blocks of memory to run the process in with no protection, but itd be enough to make sure processes are working. It seems to me that the two are independant of each other, and if I code process switching first I think that I can just slap on the memory manager and it shouldnt really change things. Any thoughts?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: steps in development

Post by Combuster »

If you use paging, you will need a physical memory manager and a virtual memory manager to create processes (the actual switching doesn't need much).

The process of retrofitting something different generally leads to more problems than having the interface right the first time (even if the implementation behind it is a stub)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
yemista
Member
Member
Posts: 299
Joined: Fri Dec 26, 2008 12:31 pm
Location: Boston
Contact:

Re: steps in development

Post by yemista »

So you are saying its a better idea to take the time now to get the memory management working to avoid future problems? I do intend to implement paging
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: steps in development

Post by Combuster »

Yes. Especially when you use paging you will need at least the virtual memory manager (otherwise you can't access a thing).

Also, you probably won't be implementing paging, Intel did that for you :wink:
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
yemista
Member
Member
Posts: 299
Joined: Fri Dec 26, 2008 12:31 pm
Location: Boston
Contact:

Re: steps in development

Post by yemista »

Ok, thank you very much for your help
Post Reply