Welcome! Log In Create A New Profile

Advanced

Need Help W/ PPC Asm

Posted by Matando 
Need Help W/ PPC Asm
May 24, 2009 03:46PM
Okay, this is driving me crazy.

I'm trying to compile a project for bootmii, ppc side of course. but I keep getting the following error:
warning: cannot find entry symbol _start; not setting start address

All I'm trying to do is get my main() function to launch. I need to define the start address and make it load my main function in ppc asm. The Only problem is I don't know ASM at all!

So can someone help me out by writing(or helping me write) some simple asm code that defines _start and launches my external main function
Re: Need Help W/ PPC Asm
May 24, 2009 04:04PM
I don't know much about bootmii, but aren't the applications still using libogc???

In that case, crt0.S is included, and it should work
Re: Need Help W/ PPC Asm
May 24, 2009 04:07PM
no they are not using libogc. I'll look at crt0.S but I don't know
Re: Need Help W/ PPC Asm
May 27, 2009 10:10AM
Umm, I don't know much about PPC ASM specifically or what you're trying to accomplish, but with MIPS ASM you define a label by simply following a symbol with a semicolon, eg. _start:. I think although MIPS and PPC differ, at least some parts are similar since they are both RISC architectures. If you're writing assembly, then you would stick that in some place in your assembly file where you want your main() to start. If not I have no idea what you're doing.



Edited 1 time(s). Last edit at 05/27/2009 10:11AM by iofthestorm.
Re: Need Help W/ PPC Asm
May 28, 2009 10:42PM
Isn't the crt1.S used?

Quote
Matando
no they are not using libogc. I'll look at crt0.S but I don't know
Sorry, only registered users may post in this forum.

Click here to login