I picked a random function from PSP and figured out what it was in PS1. Turns out it was one of these two.
SetPrimRect and SetTexturedPrimRect happen to be pulled into a .h file already. The source code there required a line swap to get a PSP match.
Interestingly, these are compiled with -O4. I'm guessing for now that functions with -O4 are grouped together into the same .c files (that is, some .c files were compiled with -O4, rather than some functions being -O4). Therefore, I adjusted the PSP makefile so that we can specify what object files use -O4. This is the same approach I used in Aironauts when I found some functions being GCC 2.7 and some being 2.8. Not sure if this will be the strongest approach long term, but I think that will become more clear as we begin crunching through PSP.
I picked a random function from PSP and figured out what it was in PS1. Turns out it was one of these two.
SetPrimRect
andSetTexturedPrimRect
happen to be pulled into a .h file already. The source code there required a line swap to get a PSP match.Interestingly, these are compiled with -O4. I'm guessing for now that functions with -O4 are grouped together into the same .c files (that is, some .c files were compiled with -O4, rather than some functions being -O4). Therefore, I adjusted the PSP makefile so that we can specify what object files use -O4. This is the same approach I used in Aironauts when I found some functions being GCC 2.7 and some being 2.8. Not sure if this will be the strongest approach long term, but I think that will become more clear as we begin crunching through PSP.