Any way to compile the OS 7.1.1 source?
Any way to compile the OS 7.1.1 source?
Been poking it, the source seems to be made up largely of ASM with C here and there. Is there any way to compile it? Is there any way to change all 68k ASM instructions to x86 for a homemade Star Trek?
Goodbye.
- PortalCake
- Donator
- Posts: 2292
- Joined: Sun Jan 11, 2009 3:29 am
Re: Any way to compile the OS 7.1.1 source?
ASM.
Jumping not just from arch to arch but from bit width to another is really hard.
Jumping not just from arch to arch but from bit width to another is really hard.
Program run condition: collect keys. Deadline: 2 days.
Re: Any way to compile the OS 7.1.1 source?
I wouldn't doubt it since the 68k and x86 platforms of the time (286-386 I would guess) are totally different processors therefore having different instruction sets and registers.
Goodbye.
- Frozenport
- Posts: 1022
- Joined: Fri Sep 01, 2006 10:04 pm
- Location: The Ephemeral between existance and non-existance: AKA "being"
- Contact:
Re: Any way to compile the OS 7.1.1 source?
Well... changing all the instruction is just emulations right? Compiled-in emulation? Eh?
Re: Any way to compile the OS 7.1.1 source?
So does anyone want me to try and learn ASM of the 68k and x86 kind so we could have a homemade Star Trek?
Goodbye.
Re: Any way to compile the OS 7.1.1 source?
I know m68k ASM, but you will also have to worry about bit endianess changes, see, m68k is Big endian, ix86 is little endian.
And, m68k has different addressing modes for even a simple move instruction, on m68k it could be:
move.b
move.w
move.l
While on x86, it's simply mov.
And, m68k has different addressing modes for even a simple move instruction, on m68k it could be:
move.b
move.w
move.l
While on x86, it's simply mov.
Re: Any way to compile the OS 7.1.1 source?
You know m68k ASM? You're even more skilled at programming than I thought.Kenneth wrote:I know m68k ASM,
Goodbye.
-
asiekierka
- Posts: 184
- Joined: Tue Aug 14, 2007 5:09 pm
Re: Any way to compile the OS 7.1.1 source?
I think static recompilation is possible, but with a speed sacrifice.
Like, for one m68k instruction you might need a bunch of x86 ones.
Like, for one m68k instruction you might need a bunch of x86 ones.
-
raynorpat
Re: Any way to compile the OS 7.1.1 source?
I was unaware that the source to system 7.1.1 was leaked? Is it true?
Re: Any way to compile the OS 7.1.1 source?
It's on the BA FTP server...raynorpat wrote:I was unaware that the source to system 7.1.1 was leaked? Is it true?
Goodbye.
- Beta_Train
- Donator
- Posts: 108
- Joined: Thu Apr 05, 2007 12:41 pm
- Location: Nova Scotia Canada
- Contact:
Re: Any way to compile the OS 7.1.1 source?
I would love to have a go at this, convert it to x86 asm, then write in a instruction translator similar to rosetta, so all of the 68k apps will work. Hmm, I may have to look into this..
Signature removed by self
Re: Any way to compile the OS 7.1.1 source?
I started with m68k ASM, then i learned C from NT code, then x86 asm.linuxlove wrote:You know m68k ASM? You're even more skilled at programming than I thought.Kenneth wrote:I know m68k ASM,
Re: Any way to compile the OS 7.1.1 source?
Guess I'll have to beg for a book on m68k ASM next... Either that or read the source and convert what needs converting.Kenneth wrote: I started with m68k ASM, then i learned C from NT code, then x86 asm.
Goodbye.
Re: Any way to compile the OS 7.1.1 source?
You might wanna look at the Executor source code, which is on github - it's not the 'real' MacOS, but it has a complete (at least through System 6?) API. It might be possible to build programs against that and run natively.