Re: CodeWarrior objects -> LinuxPPC
From: Timothy Wall <hidden>
Date: 2000-01-14 01:29:12
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 [off-list ref] |
| 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/