| View previous topic :: View next topic |
| Author |
Message |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Fri Nov 20, 2009 6:58 am Post subject: why -fno-rtti default |
|
|
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... _________________
| Code: | int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
} |
|
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Fri Nov 20, 2009 7:54 am Post subject: |
|
|
Because: | Code: | $ 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
|
|
|
| Back to top |
|
 |
coolkehon
Joined: 20 Oct 2008 Posts: 355
|
Posted: Tue Nov 24, 2009 4:54 am Post subject: |
|
|
| so does the psp support rtti |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Nov 24, 2009 7:26 am Post subject: |
|
|
| It's more a question of whether your g++ and libstdc++ builds support it, there shouldn't be anything PSP-specific. As long as you build things without -fno-rtti I expect it would work. |
|
| Back to top |
|
 |
|