Welcome, Guest. Please login or register.

Author Topic: Morphos compatible software solutions.  (Read 3403 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Morphos compatible software solutions.
« on: December 19, 2008, 02:30:46 AM »
@Trev

Single ELF for all three, no. It'd need to be dynamic, containing the different binaries inside. The obvious solution would be to wrap it all inside an amiga 68k executable with a small 68k code stub that determines the actual runtime system and loads the appropriate ELF, except that AROS does not run 68k binaries at all.

Thus, while it would be easily possible to create a binary that runs on both OS4 and MOS (with native code), it is not possible to include AROS (the only exception would be AROS ported to 68k, but does such thing even exist?).
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Morphos compatible software solutions.
« Reply #1 on: December 19, 2008, 07:58:07 PM »
@itix
Quote
No need to use 68k code. MorphOS executables are always executed from the beginning of the first hunk and OS4 executables are executed from _start() entry.

That would work, but you'd need to have a special linker.

Quote
I would probably just use simple script to detect OS. It would do everything what fat binary would do.

That doesn't allow single fat binary, however.