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 

any ideas on how to get libgcov.a working?

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



Joined: 10 Nov 2005
Posts: 259
Location: Netherlands

PostPosted: Fri Nov 06, 2009 6:34 am    Post subject: any ideas on how to get libgcov.a working? Reply with quote

gcc builds by default builds gcov but although the pc side of gcov works the linking library as empty functions, or so it seems, does anyone got it to work or knows how to?
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
theHobbit



Joined: 30 Sep 2006
Posts: 65

PostPosted: Mon Nov 09, 2009 1:23 pm    Post subject: Reply with quote

I posted about this the other day, here in the forums http://forums.ps2dev.org/viewtopic.php?t=12533 but i havenīt got any answer.

If you use -fprofile-arcs and -ftest-coverage the code compiles ok, but no gcda files are generated. I tryied to modify the gcda paths in the object files manually but it doesnīt work either.

But i will keep my eyes on this one, because i think it could be really helpfull to optimize emulators and code in general.
Back to top
View user's profile Send private message
Heimdall



Joined: 10 Nov 2005
Posts: 259
Location: Netherlands

PostPosted: Tue Nov 10, 2009 1:20 am    Post subject: Reply with quote

I've managed to build libgcov.a as expected. However I haven't tested it yet. Since we are using newlib as our c lib implementation gcc assumes we are lot using glibc (and that is correct) but gcov takes this assumption further and assumes that if we do not have glibc we cannot write files, to "fix" it all we need to to pass the with-headers on the second stage of gcc build.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
theHobbit



Joined: 30 Sep 2006
Posts: 65

PostPosted: Mon Nov 16, 2009 1:26 pm    Post subject: Reply with quote

Hi, just wondering if you had any luck with getting -fprofile-generate working. Please let me know if i can help with anything.
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