forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

why -fno-rtti default

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Fri Nov 20, 2009 6:58 am    Post subject: why -fno-rtti default Reply with quote

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
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Fri Nov 20, 2009 7:54 am    Post subject: Reply with quote

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
View user's profile Send private message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Tue Nov 24, 2009 4:54 am    Post subject: Reply with quote

so does the psp support rtti
Back to top
View user's profile Send private message MSN Messenger
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Tue Nov 24, 2009 7:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group