Page 1 of 1

Highly Portable OS

Posted: Sat Dec 14, 2002 5:04 pm
by pskyboy
Hey Guys

Has anyone got any knowledge on any of the many other architectures available out there. Basically i want to make my OS highly portable and some proccessors require different things to others.

What i mean by this is i can write the source in a HLL so that machine code can be regenerated for each machine but how would i go about handling say paging on different architectures.

My main reason for asking this is i know some risc architectures use software address calculation after a TLB miss where as x86 uses hardware. My idea is to make a kind of buffer layer that makes the interface to the processor the same no matter what platform do you think this would work??

Peter

Re:Highly Portable OS

Posted: Sat Dec 14, 2002 6:21 pm
by df
HAL - hardware abstraction layer.

win nt has one.
mach has one (iirc...)
etc

Re:Highly Portable OS

Posted: Sat Dec 14, 2002 7:33 pm
by jrfritz
Well, I came up with a idea for making FritzOS portable.

First, make something like tires...FritzOS will makes calles on functions, and these functions find what platform it's running on, by a simple #define.

If FritzOS was running on a Mac, it would use MacOS functions from this or that file. It would be easy to add portablity to other platforms. If this idea has been invented alreay, please tell me.