Why does all psp-makefiles have -fno-rtti as default
I did some tests and it works as it should do.(probably)
Is it because it saves space in the prx?
Is it because it speeds up the prx?
Or has it a more technicaly reason?
EDIT:
Same for -fno-exception...
why -fno-rtti default
why -fno-rtti default
Code: Select all
int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
}
Because:
Code: Select all
$ cat test.cc
#include <stdio.h>
int main() {
printf("hello, world\n");
return 0;
}
$ psp-g++ -s -o test test.cc -L/usr/local/pspdev/psp/sdk/lib -Wl,--start-group -lc -lpspuser -lpspkernel
$ psp-size test
text data bss dec hex filename
92868 4872 27988 125728 1eb20 test
$ psp-g++ -s -o test test.cc -L/usr/local/pspdev/psp/sdk/lib -Wl,--start-group -lc -lpspuser -lpspkernel -fno-exceptions -fno-rtti
$ psp-size test
text data bss dec hex filename
10758 2100 25708 38566 96a6 test