Page 1 of 1

better -- segmentation or paging?

Posted: Tue Jul 24, 2001 6:05 pm
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

Re: better -- segmentation or paging?

Posted: Tue Jul 24, 2001 10:04 pm
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.