RE: Intermixing powerpc-eabi and powerpc-linux C code

2006-06-23 Thread Meissner, Michael
> -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

Re: Intermixing powerpc-eabi and powerpc-linux C code

2006-06-06 Thread Ron McCall
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!

Re: Intermixing powerpc-eabi and powerpc-linux C code

2006-06-01 Thread Mike Stump
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

Re: Intermixing powerpc-eabi and powerpc-linux C code

2006-06-01 Thread Ron McCall
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

Re: Intermixing powerpc-eabi and powerpc-linux C code

2006-06-01 Thread Paul Brook
> 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

Intermixing powerpc-eabi and powerpc-linux C code

2006-06-01 Thread Ron McCall
Hi! 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? The resulting program would be run on a PowerPC Linux system (ELDK 4.0). In this case, main() would be compiled by powerpc-l