* Re: CodeWarrior objects -> LinuxPPC
2000-01-14 0:32 CodeWarrior objects -> LinuxPPC Greg Allen
@ 2000-01-13 20:39 ` David Riley
2000-01-14 1:29 ` Timothy Wall
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: David Riley @ 2000-01-13 20:39 UTC (permalink / raw)
To: Greg Allen; +Cc: linuxppc-dev
Greg Allen wrote:
>
> Is it possible compile C source in CodeWarrior and create an object (or
> library) that can be used under LinuxPPC?
> I notice that a CW "Shared Library" is recognized by /usr/bin/file as
> "header for PowerPC PEF executable", but objdump will have nothing to do
> with it.
>
> My initial guess is "not yet". Has anyone else ever tried this?
>
> I guess there's no reason that objcopy couldn't be extended to handle this
> (assuming CodeWarrior's object/lib file formats are public info).
My guess is that it is difficult if not impossible to use a MacOS
library (PowerPC or not) in linux, since even libraries make use of the
"cfrg" resource. And Metrowerks' object format is proprietary (this is
one of the things that causes the major rift between CW and MPW).
--
"Your mouse has been moved. Windows 95 must be restarted for change to
take effect."
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* CodeWarrior objects -> LinuxPPC
@ 2000-01-14 0:32 Greg Allen
2000-01-13 20:39 ` David Riley
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Greg Allen @ 2000-01-14 0:32 UTC (permalink / raw)
To: linuxppc-dev
Is it possible compile C source in CodeWarrior and create an object (or
library) that can be used under LinuxPPC?
For example, you should be able to take a really simple program, like:
#include <stdio.h>
void goo(float f)
{ printf("goo: f = %g\n", f); }
make an object in CW, copy to LinuxPPC, link it with gcc into some app that
can call goo.
(Why? CW has an AltiVec compiler, Linux currently has none.)
I notice that a CW "Shared Library" is recognized by /usr/bin/file as
"header for PowerPC PEF executable", but objdump will have nothing to do
with it.
My initial guess is "not yet". Has anyone else ever tried this?
I guess there's no reason that objcopy couldn't be extended to handle this
(assuming CodeWarrior's object/lib file formats are public info).
Thanks,
-Greg
--------------------------------------------------------------------
| Gregory E. Allen, Research Engineer <gallen@arlut.utexas.edu> |
| Advanced Technology Laboratory, Sonar Development Division |
| Applied Research Laboratories: The University of Texas at Austin |
--------------------------------------------------------------------
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: CodeWarrior objects -> LinuxPPC
2000-01-14 0:32 CodeWarrior objects -> LinuxPPC Greg Allen
2000-01-13 20:39 ` David Riley
@ 2000-01-14 1:29 ` Timothy Wall
2000-01-14 1:35 ` Jim Potter
2000-01-14 1:48 ` Tony Mantler
3 siblings, 0 replies; 6+ messages in thread
From: Timothy Wall @ 2000-01-14 1:29 UTC (permalink / raw)
To: Greg Allen; +Cc: linuxppc-dev
The GNU utilities do not support PEF (perhaps b/c it's a proprietary format
you have to license in order to use).
T.
Greg Allen wrote:
> Is it possible compile C source in CodeWarrior and create an object (or
> library) that can be used under LinuxPPC?
>
> For example, you should be able to take a really simple program, like:
>
> #include <stdio.h>
> void goo(float f)
> { printf("goo: f = %g\n", f); }
>
> make an object in CW, copy to LinuxPPC, link it with gcc into some app that
> can call goo.
>
> (Why? CW has an AltiVec compiler, Linux currently has none.)
>
> I notice that a CW "Shared Library" is recognized by /usr/bin/file as
> "header for PowerPC PEF executable", but objdump will have nothing to do
> with it.
>
> My initial guess is "not yet". Has anyone else ever tried this?
>
> I guess there's no reason that objcopy couldn't be extended to handle this
> (assuming CodeWarrior's object/lib file formats are public info).
>
> Thanks,
> -Greg
> --------------------------------------------------------------------
> | Gregory E. Allen, Research Engineer <gallen@arlut.utexas.edu> |
> | Advanced Technology Laboratory, Sonar Development Division |
> | Applied Research Laboratories: The University of Texas at Austin |
> --------------------------------------------------------------------
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: CodeWarrior objects -> LinuxPPC
2000-01-14 0:32 CodeWarrior objects -> LinuxPPC Greg Allen
2000-01-13 20:39 ` David Riley
2000-01-14 1:29 ` Timothy Wall
@ 2000-01-14 1:35 ` Jim Potter
2000-01-14 1:48 ` Tony Mantler
3 siblings, 0 replies; 6+ messages in thread
From: Jim Potter @ 2000-01-14 1:35 UTC (permalink / raw)
To: Greg Allen; +Cc: linuxppc-dev
I presume that you mean CW on MacOS.
They generate PEF files, the details of which are described on Apple's developer
site:
<http://developer.apple.com/techpubs/mac/runtimehtml/RTArch-89.html>
and there is some code (IOPEFloader.c, if memory serves) on Apples darwin site:
<http://publicsource.apple.com/projects/darwin/>
..Jim..
Greg Allen wrote:
> Is it possible compile C source in CodeWarrior and create an object (or
> library) that can be used under LinuxPPC?
>
> For example, you should be able to take a really simple program, like:
>
> #include <stdio.h>
> void goo(float f)
> { printf("goo: f = %g\n", f); }
>
> make an object in CW, copy to LinuxPPC, link it with gcc into some app that
> can call goo.
>
> (Why? CW has an AltiVec compiler, Linux currently has none.)
>
> I notice that a CW "Shared Library" is recognized by /usr/bin/file as
> "header for PowerPC PEF executable", but objdump will have nothing to do
> with it.
>
> My initial guess is "not yet". Has anyone else ever tried this?
>
> I guess there's no reason that objcopy couldn't be extended to handle this
> (assuming CodeWarrior's object/lib file formats are public info).
>
> Thanks,
> -Greg
> --------------------------------------------------------------------
> | Gregory E. Allen, Research Engineer <gallen@arlut.utexas.edu> |
> | Advanced Technology Laboratory, Sonar Development Division |
> | Applied Research Laboratories: The University of Texas at Austin |
> --------------------------------------------------------------------
--
Sincerely,
Jim Potter
45th Parallel Processing
503.769.9138
jrp@wvi.com
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: CodeWarrior objects -> LinuxPPC
2000-01-14 0:32 CodeWarrior objects -> LinuxPPC Greg Allen
` (2 preceding siblings ...)
2000-01-14 1:35 ` Jim Potter
@ 2000-01-14 1:48 ` Tony Mantler
2000-01-14 2:01 ` David Edelsohn
3 siblings, 1 reply; 6+ messages in thread
From: Tony Mantler @ 2000-01-14 1:48 UTC (permalink / raw)
To: Greg Allen, linuxppc-dev
At 6:32 PM -0600 1/13/00, Greg Allen wrote:
>Is it possible compile C source in CodeWarrior and create an object (or
>library) that can be used under LinuxPPC?
>
>For example, you should be able to take a really simple program, like:
>
>#include <stdio.h>
>void goo(float f)
>{ printf("goo: f = %g\n", f); }
>
>make an object in CW, copy to LinuxPPC, link it with gcc into some app that
>can call goo.
>
>(Why? CW has an AltiVec compiler, Linux currently has none.)
>
>I notice that a CW "Shared Library" is recognized by /usr/bin/file as
>"header for PowerPC PEF executable", but objdump will have nothing to do
>with it.
>
>My initial guess is "not yet". Has anyone else ever tried this?
>
>I guess there's no reason that objcopy couldn't be extended to handle this
>(assuming CodeWarrior's object/lib file formats are public info).
Last I checked, all the MacOS runtime architectures are well documented by
Apple, right back to the original 68k Segment Manager. Try
<http://developer.apple.com/techpubs/mac/runtimehtml/RTArch-89.html> for a
start.
You might check the appropriate ABIs though, to see if there's any
inconsitancies between how codewarrior generates it's code for MacOS, and
what linux expects the code to look like.
But before you do all that, check to see if Altivec register saving is
implemented in the kernel yet. There was a discussion a while back on how
to do it best, but I didn't hear if any code came out of it.
(I don't have a G4, so I'm certainly not going to write it... Donations are
welcome though) 8)
Cheers - Tony :)
--
Tony Mantler Renaissance Nerd Extraordinaire eek@escape.ca
Winnipeg, Manitoba, Canada http://www.escape.ca/~eek
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: CodeWarrior objects -> LinuxPPC
2000-01-14 1:48 ` Tony Mantler
@ 2000-01-14 2:01 ` David Edelsohn
0 siblings, 0 replies; 6+ messages in thread
From: David Edelsohn @ 2000-01-14 2:01 UTC (permalink / raw)
To: Tony Mantler; +Cc: Greg Allen, linuxppc-dev
I believe that MacOS PEF is more similar to AIX PowerOpen/XCOFF
than it is to Linux SVR4/ELF.
David
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2000-01-14 2:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-14 0:32 CodeWarrior objects -> LinuxPPC Greg Allen
2000-01-13 20:39 ` David Riley
2000-01-14 1:29 ` Timothy Wall
2000-01-14 1:35 ` Jim Potter
2000-01-14 1:48 ` Tony Mantler
2000-01-14 2:01 ` David Edelsohn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).