Since storage space is usually limited on the psp, the size of executables should be an important issue for all psp developers.
To help minimize size, I suggest all developers start using the -Os optimization flag.
From gcc man:
Normally a few K for an executable doesn't matter but when you only have a couple megs to a gig of space every little byte counts. I think that space is going to be a bigger issue than runtime when it comes to the psp so optimization for space makes sense.-Os Optimize for size. -Os enables all -O2 optimizations
that do not typically increase code size. It also
performs further optimizations designed to reduce code
size.
-Os disables the following optimization flags:
-falign-functions -falign-jumps -falign-loops
-falign-labels -freorder-blocks -fprefetch-loop-arrays
Anyway, I'd be interested in what others think of this suggestion and I'd also like to see other suggestions on how to save space. Maybe next we can look into encouraging people to compress their data all the time, maybe through some sort of serialization that has compression built in?