This is the mail archive of the
crossgcc@cygnus.com
mailing list for the crossgcc project.
cross-compiler for PowerPC without operating system
- To: <crossgcc@cygnus.com>
- Subject: cross-compiler for PowerPC without operating system
- From: e.van.hoek@philips.com
- Date: Wed, 23 Jun 1999 14:15:23 +0200
- Reply-To: crossgcc@cygnus.com
Hi,
I'm trying to build a cross-compiler for PowerPC using the following:
- gcc-2.8.1
- binutils-2.9.1
- newlib-1.8.1
I'm building the cross-compiler with the option "powerpc-motorola-eabi" and there are a few questions that I have:
1: Is "powerpc-motorola-eabi" the right option to build a compiler for PowerPC that runs native code (there is no Operating System on the PowerPC board) or should I use another build option?
2: What is EABI and in how far does it handle register usage of the powerpc, i.e. do I need to set the stack pointer myself or does EABI handle this?
3: How can I initialise the stack? I defined a memory section for the stack in the linker file, but how can i set the stackpointer to this region?
4: Do I need a crt0 function and what should be inside it?
5: Executables generated by the compiler are in ELF-format. Is it possible to download such an executable in RAM memory and start it right at the base address or do i need to convert the executable to a binary format (using objcopy) and execute this?
Erik van Hoek
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.