Any way to compile the OS 7.1.1 source?

Discuss System 1 to System 7, OS 8, OS 9.
Post Reply
linuxlove
Donator
Posts: 5901
Joined: Tue Dec 01, 2009 2:56 am

Any way to compile the OS 7.1.1 source?

Post by linuxlove »

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
User avatar
Donator
Posts: 2292
Joined: Sun Jan 11, 2009 3:29 am

Re: Any way to compile the OS 7.1.1 source?

Post by PortalCake »

ASM.
Jumping not just from arch to arch but from bit width to another is really hard.
Program run condition: collect keys. Deadline: 2 days.

linuxlove
Donator
Posts: 5901
Joined: Tue Dec 01, 2009 2:56 am

Re: Any way to compile the OS 7.1.1 source?

Post by linuxlove »

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
User avatar
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?

Post by Frozenport »

Well... changing all the instruction is just emulations right? Compiled-in emulation? Eh?
Image
Part Time Troll - HPC Enthusiast - Spelling Master - Old Fart

linuxlove
Donator
Posts: 5901
Joined: Tue Dec 01, 2009 2:56 am

Re: Any way to compile the OS 7.1.1 source?

Post by linuxlove »

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.

Kenneth
Donator
Posts: 2407
Joined: Sun May 13, 2007 12:42 am

Re: Any way to compile the OS 7.1.1 source?

Post by Kenneth »

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.

linuxlove
Donator
Posts: 5901
Joined: Tue Dec 01, 2009 2:56 am

Re: Any way to compile the OS 7.1.1 source?

Post by linuxlove »

Kenneth wrote:I know m68k ASM,
You know m68k ASM? You're even more skilled at programming than I thought.
Goodbye.

asiekierka
Posts: 184
Joined: Tue Aug 14, 2007 5:09 pm

Re: Any way to compile the OS 7.1.1 source?

Post by asiekierka »

I think static recompilation is possible, but with a speed sacrifice.
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?

Post by raynorpat »

I was unaware that the source to system 7.1.1 was leaked? Is it true?

linuxlove
Donator
Posts: 5901
Joined: Tue Dec 01, 2009 2:56 am

Re: Any way to compile the OS 7.1.1 source?

Post by linuxlove »

raynorpat wrote:I was unaware that the source to system 7.1.1 was leaked? Is it true?
It's on the BA FTP server...
Goodbye.

Beta_Train
User avatar
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?

Post by Beta_Train »

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

Kenneth
Donator
Posts: 2407
Joined: Sun May 13, 2007 12:42 am

Re: Any way to compile the OS 7.1.1 source?

Post by Kenneth »

linuxlove wrote:
Kenneth wrote:I know m68k ASM,
You know m68k ASM? You're even more skilled at programming than I thought.
I started with m68k ASM, then i learned C from NT code, then x86 asm.

linuxlove
Donator
Posts: 5901
Joined: Tue Dec 01, 2009 2:56 am

Re: Any way to compile the OS 7.1.1 source?

Post by linuxlove »

Kenneth wrote: I started with m68k ASM, then i learned C from NT code, then x86 asm.
Guess I'll have to beg for a book on m68k ASM next... Either that or read the source and convert what needs converting.
Goodbye.

happycube
Posts: 27
Joined: Fri Jul 16, 2010 4:55 pm

Re: Any way to compile the OS 7.1.1 source?

Post by happycube »

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.

Post Reply