This is the mail archive of the
mailing list for the crossgcc project.
cross-compiler for PowerPC without operating system
- To: <email@example.com>
- Subject: cross-compiler for PowerPC without operating system
- From: firstname.lastname@example.org
- Date: Wed, 23 Jun 1999 14:15:23 +0200
- Reply-To: email@example.com
I'm trying to build a cross-compiler for PowerPC using the following:
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 firstname.lastname@example.org with the
text 'unsubscribe' (without the quotes) in the
body of the message.