Welcome, Guest. Please login or register.

Author Topic: OS3.x PPC?  (Read 1667 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
OS3.x PPC?
« on: November 01, 2007, 08:29:28 PM »
Is there any reason why OS3.9 functions couldn't be rewritten as PPC versions? It seems to me that this could be a good alternative to OS4 Classic if what one is looking for is a PPC native Workbench with Classic compatibility.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Heinz

  • Full Member
  • ***
  • Join Date: Nov 2005
  • Posts: 154
    • Show only replies by Heinz
    • http://amidevcpp.amiga-world.de
Re: OS3.x PPC?
« Reply #1 on: November 01, 2007, 08:44:58 PM »
Quote

motorollin wrote:
Is there any reason why OS3.9 functions couldn't be rewritten as PPC versions?


Well I guess that is what those OS4 and MorphOS guys did ?
If you meant recompile, then it depends on the sources (C / 68k asm / no sources at all)
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: OS3.x PPC?
« Reply #2 on: November 01, 2007, 08:47:46 PM »
No, I didn't mean recompile. I meant rewrite from scratch. MorphOS and OS4 aren't quite the same since they're not (AFAIK) API compatible with OS3.x. A PPC rewrite of 3.x would be both API and binary compatible (binary compatibility being provided by the 68k CPU).

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: OS3.x PPC?
« Reply #3 on: November 01, 2007, 09:10:46 PM »
MorphOS is API and binary (ABI) compatible with AOS 3.x (barring couple of things, such as BCPL).

MorphOS started as a tight microkernel + static (no just-in-time compilation back then) 68k emulator for PowerUP cards. Only couple of core components were PPC native back then (exec, expansion and couple of other things). The KS ROM components were replaced one by one with PPC native versions, but the 68k APIs were kept. This way any OS legal 68k app will continue to run as it has no idea how the actual underlying OS function is implemented.

The obvious benefit of using the 68k emulation is that you don't need to worry about the caches. With dual 68k and PPC you must manually keep track of caches and flush when needed. This results in severe penalties as typically both 68k and PPC caches are fully flushed when switching the processor.

Also, once you throw in JIT compilation, the emulated 68k runs circles around 68060, not to mention 68040@25.


W00T, this was my 4000th post.
 

Offline itix

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 2380
    • Show only replies by itix
Re: OS3.x PPC?
« Reply #4 on: November 01, 2007, 09:11:40 PM »
Quote

MorphOS and OS4 aren't quite the same since they're not (AFAIK) API compatible with OS3.x. A PPC rewrite of 3.x would be both API and binary compatible (binary compatibility being provided by the 68k CPU).


There is no binary compatibility without API compatibility. They are not 100% compatible because they dont support everything (i.e. BCPL programs).

Quote

Is there any reason why OS3.9 functions couldn't be rewritten as PPC versions?


One could also write a 68k emulator for PPC (to run OS3 on PPC under emulation) and systemically replace 68k components.
My Amigas: A500, Mac Mini and PowerBook
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: OS3.x PPC?
« Reply #5 on: November 01, 2007, 10:08:52 PM »
Quote
Piru wrote:
MorphOS is API and binary (ABI) compatible with AOS 3.x (barring couple of things, such as BCPL).

Interesting, I didn't realise that. Would it even run hardware bashing software like WHDLoad? (on Classic)

Quote
Piru wrote:
Also, once you throw in JIT compilation, the emulated 68k runs circles around 68060, not to mention 68040@25.

Even on BPPC/CSPPC?

Quote
Piru wrote:
W00T, this was my 4000th post.

W00t indeed :pint:

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline djbase

Re: OS3.x PPC?
« Reply #6 on: November 01, 2007, 10:24:36 PM »
Quote

motorollin wrote:
Quote
Piru wrote:
Also, once you throw in JIT compilation, the emulated 68k runs circles around 68060, not to mention 68040@25.

Even on BPPC/CSPPC?


In fact, the MOS 68k JIT on my CSPPC 604/180 MHz beats the 68060/50 MHz. Demos like SilkCut or Starstruck runs even faster under MOS than on a real 68k.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: OS3.x PPC?
« Reply #7 on: November 01, 2007, 10:44:22 PM »
@motorollin
Quote
Would it even run hardware bashing software

HW bashing stuff never was target for MorphOS, but some things do work. It has been a while I ran MorphOS on amiga so my memory is a bit hazy here... I remember running some demos and intros on it though.
Quote
like WHDLoad? (on Classic)

I really don't know. If I'd have to guess I'd say no (the emulated 68060 has no MMU for example).
Quote
Quote
Piru wrote:
Also, once you throw in JIT compilation, the emulated 68k runs circles around 68060, not to mention 68040@25.
Even on BPPC/CSPPC?

Easily.
 

Offline adonay

  • Hero Member
  • *****
  • Join Date: Jan 2005
  • Posts: 1144
    • Show only replies by adonay
    • http://www.freewebs.com/adonay-/index.htm
Re: OS3.x PPC?
« Reply #8 on: November 01, 2007, 11:20:15 PM »
wow i knew the JIT engine was powerful but never imagined the bppc\cppc would out run a 060 in just in time emulation . Makes me want to try out morph os on my bppc . Is the classic version fast compared to a 060 with voodoo in 3.9 i would assume it is since the JIT can outrun it  
A1200 ACA 1230