Re: Linking Mach-O and AIX binaries
Re: Linking Mach-O and AIX binaries
- Subject: Re: Linking Mach-O and AIX binaries
- From: Steven Majewski <email@hidden>
- Date: Wed, 10 Jul 2002 18:00:36 -0400
On Tuesday, July 9, 2002, at 09:20 PM, Warren Nagourney wrote:
The subject says it all: can a binary object file compiled on an IBM Power
machine running AIX be linked with a Mach-O binary to create an app which
runs on a Mac OS X machine?
AIX uses XCOFF object format, which is an eXtended version of COFF
-- Common Object File Format. There are command line switches for
the AIX C compiler (xlc) to control the target architecture -- I
would hope that the default output is the common denominator opcodes.
( I'm assuming that you're using xlc and not gcc on AIX ? )
Apple used AIX to cross compile some of the early PPC software and
an earlier version of CodeWarrior (at least as far back as CWPro4)
had an "Import XCOFF PPC" plugin. I don't know if that is still
shipped in the current version.
Someone once wrote an app to run AIX binaries on MacOS "classic" --
it had an emulation of the standard C I/O library (shared) but none
of the X11 libs so it was for terminal apps only.
I wouldn't think a converter from XCOFF to mach-o format would be
too difficult -- you wouldn't have to translate any of the code --
just the file format, symbol tables, etc. ( But maybe, as someone
else has suggested, assembler source might be an easier way to
port code from one compiler to another environment. )
-- Steve Majewski
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.