Code Limits in Eboot??
-
- Posts: 87
- Joined: Mon Jan 08, 2007 12:16 pm
- Location: Australia
Code Limits in Eboot??
Hey everyone,
i came across something really weird during writing my program, my program would refuse to run when i added two new functions in, i went over and over these functions and there was absolutely nothing wrong with them, i then got a hunch that maybe i had too many function and or code in my main.c file so i commented out some other function i knew worked but didnt really need and then compiled and it worked i was amazed, i then went about changing the functions i commented out to make sure it just wasnt a conflict with the first functions i commented out, and no matter which functions i commented out the program worked again, but i tried uncommenting everything and bang the program refuses to run again,
Is there some sort of limit to the amount of code that can be compiled into an eboot or kept in the one .c file?? im using 3.03oeb to test my program
i came across something really weird during writing my program, my program would refuse to run when i added two new functions in, i went over and over these functions and there was absolutely nothing wrong with them, i then got a hunch that maybe i had too many function and or code in my main.c file so i commented out some other function i knew worked but didnt really need and then compiled and it worked i was amazed, i then went about changing the functions i commented out to make sure it just wasnt a conflict with the first functions i commented out, and no matter which functions i commented out the program worked again, but i tried uncommenting everything and bang the program refuses to run again,
Is there some sort of limit to the amount of code that can be compiled into an eboot or kept in the one .c file?? im using 3.03oeb to test my program
-
- Posts: 87
- Joined: Mon Jan 08, 2007 12:16 pm
- Location: Australia
-
- Posts: 87
- Joined: Mon Jan 08, 2007 12:16 pm
- Location: Australia
I've seen PSP programs (without embedded roms or such) that were several megs in size (4.6M one was), so I seriously doubt there's any kind of size restriction beyond all the data fitting into the ~24M of RAM available. Maybe you have a compiler switch you're setting that switches on the MIPS equivalent to smallcode model. I don't know if the MIPS even has one, but it would be the first thing I'd think of on an x86 or 68k.
-
- Posts: 87
- Joined: Mon Jan 08, 2007 12:16 pm
- Location: Australia
mmm i still cant figure it out, im just using boring old cygwin and make files to compile it with maybe i have something bad in my makefile could that be it???? is there any other reason why when i add more code even just an empty for loop or if statement that it crashes the psp??? everything compiles fine
-
- Posts: 339
- Joined: Thu Sep 29, 2005 4:19 pm
-
- Posts: 87
- Joined: Mon Jan 08, 2007 12:16 pm
- Location: Australia
-
- Posts: 339
- Joined: Thu Sep 29, 2005 4:19 pm
http://www.devx.com/tips/Tip/13265
Psplink allows you to very comfortably run and debug PSP apps. Read the Psplink thread!
Psplink allows you to very comfortably run and debug PSP apps. Read the Psplink thread!
-
- Posts: 87
- Joined: Mon Jan 08, 2007 12:16 pm
- Location: Australia