I have a ?. I am going to start on development on an OS and I was wondering if it is even possible to make an OS for the PC that can run PC and Mac applications on the same OS. I want to be able to run them stand alone with out using an emulator. Please email with any comments advice or anything. My email is [email protected]
Thanx
MAc and PC OS
Re:MAc and PC OS
Hm... without a emulator... I don't know if that is possible... because PC and Mac should have different machine language and system architecture... should they not?
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:MAc and PC OS
there are several application that can be portable on both PC/Linux (based on a x86 processor) and MAC/OSX (based on a PowerPC processor), because you compile the application's source for the target platform.
if you don't want to release your application's sources, you can either use an intermediate language (some kind of bytecode) that will be translated into the target machine's own code at installation time or opt for some Java-like mechanism (just-in-time compiling)
Note that as a final solution, you could ship several binary version of your applications for the different target platform, but on a single medium
if you don't want to release your application's sources, you can either use an intermediate language (some kind of bytecode) that will be translated into the target machine's own code at installation time or opt for some Java-like mechanism (just-in-time compiling)
Note that as a final solution, you could ship several binary version of your applications for the different target platform, but on a single medium
Re:MAc and PC OS
Uh-huh. Recompiling an application that you don't have the source code to. And that's assuming that you don't want to run all that fun 68k-based software that runs in emulation on the real thing, uses the CFM code conventions, and some of which rewrites it's code on the fly.
On the other paw, I've long thought it'd be neat to have a PC operating system that used all the old MacOS 7 APIs and code conventions, used HFS and HFS+ disks natively, and so on. The main problem is the lack of PC-relative data addressing instructions on the PC. You'd have to write all-new applications for it, of course, but it'd still be neat.
On the other paw, I've long thought it'd be neat to have a PC operating system that used all the old MacOS 7 APIs and code conventions, used HFS and HFS+ disks natively, and so on. The main problem is the lack of PC-relative data addressing instructions on the PC. You'd have to write all-new applications for it, of course, but it'd still be neat.
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:MAc and PC OS
errr ... just another thing that would make the binary-to-binary translation very approximative: PC are little-endian and MAC are big-endian, iirc.
Re:MAc and PC OS
Modern Macs might be able to run in either big or little endian mode, but...
Historically, macs have been big endian. This was dictated by their being based around the (excellent) 68k architecture.
Can they really switch the endianness of the structures used for the windowing system and various syscalls? That sounds a little far-fetched to me.
Historically, macs have been big endian. This was dictated by their being based around the (excellent) 68k architecture.
Can they really switch the endianness of the structures used for the windowing system and various syscalls? That sounds a little far-fetched to me.