better -- segmentation or paging?

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
shawnd

better -- segmentation or paging?

Post by shawnd »

After a lot of trouble, i managed to learn all the memory addressing techniques...however now I have yet another question :) Do we have to implement both? or just paging or just segmentation. Well here's what I think, segmentation is too hardware dependent, so its not a good idea for portable OSs. on the other hand paging is implemented through hardware that is more commonly found i.e a linear -> physical address convertor. so anyone have any ideas, on which one to implement? which one is easier might be a factor too?

Shawn
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re: better -- segmentation or paging?

Post by df »

you can implement both, either or none really. personally, if your going to implement one of them, paging. segmentation is difficult in the sense common compilers (aka gcc) dont like (and might not) produce segmented code. gcc likes flat binaries.
-- Stu --
Post Reply