This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cross-compiler for PowerPC without operating system


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]