Highly Portable OS

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
pskyboy

Highly Portable OS

Post 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
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:Highly Portable OS

Post by df »

HAL - hardware abstraction layer.

win nt has one.
mach has one (iirc...)
etc
-- Stu --
jrfritz

Re:Highly Portable OS

Post 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.
Post Reply