Hi,
I tried to compile neocdpsp0.5 (http://yoyofr92.free.fr/psp/files/neocdpsp-0.5.src.zip), the original dev says he compiled it with svn 690, as I can't find a way to get this version, I compiled with the last psptoolchain stuff (svn 724) and I'm getting this error
with the original -O3
I can only get this file compiled at -O0 and it's ultra slow ^^, so I compiled everything execpt c68kexec.o with -O3 but it's still a bit slower than the original.
hum I downloaded 690 and done ./bootstrap; ./configure; ./make clean; ./make
I tried compiling again and i got the same, is it enought to replace the "old" one ?
Just a note, excessive inlining (-O3) on the PSP is not a good idea. The reason is that the PSP has a tiny I-cache (16KB), so by the time you restart your inlined loop you're reloading that part into the cache anyway. I suspect C68k_Exec() is the main CPU loop, which is bigger than 16KB. I had problems in VisualBoyAdvance with a file that had tons of inlining (the compiler would run out of memory). I made a few of the heavily-used inline functions static, and it compiles that file fine now. That may work for you.
I'd recommend always using the -O2 option (or -Os) as that usually gives the right balance between size and speed. All of that -O3 inlining is only good for CPU's with large caches, such as the x86.