This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Intermixing powerpc-eabi and powerpc-linux C code
- From: Ron McCall <ronald dot mccall at snet dot net>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 1 Jun 2006 11:32:32 -0700 (PDT)
- Subject: Intermixing powerpc-eabi and powerpc-linux C code
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-linux-gcc while a test driver and all code to
be tested would be compiled by powerpc-eabi-gcc.
Everything would be linked using powerpc-linux-gcc.
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.
None of the powerpc-eabi code will depend on any
libraries or other external code, it will all be
completely self-contained.
Thanks!
Ron McCall