> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of
> Ron McCall
> Sent: Thursday, June 01, 2006 2:33 PM
> To: gcc@gcc.gnu.org
> Subject: Intermixing powerpc-eabi and powerpc-linux C code
>
> Hi!
>
> Does anyone happen to know if it is possible to link
>
You make a good point about the linker aspect but I was first most
concerned about the code generation differences, if any.
However, you are absolutely correct! A test is in order. I whipped up
a quick test program and was able to successfully compile, link and run
it, so it does indeed work!
On Jun 1, 2006, at 11:32 AM, Ron McCall wrote:
Does anyone happen to know if it is possible to link
(and run) C code compiled with a powerpc-eabi targeted
gcc with C code compiled with a powerpc-linux targeted
gcc?
This is a linker question, we don't do linkers here. In particular,
the reloc
I guess I should have also mentioned that the
resultant program will be run under gdb, with a script
setting breakpoints, running, examining variables,
etc.
--- Paul Brook <[EMAIL PROTECTED]> wrote:
> > The call from Linux-land to eabi-land would not
> need
> > to pass arguments nor return anythi
> The call from Linux-land to eabi-land would not need
> to pass arguments nor return anything and nothing
> would need to be shared between the two pieces of
> code.
So basically you can replace the whole thing with sleep(1); and noone would be
any the wiser.
Paul