| View previous topic :: View next topic |
| Author |
Message |
Heimdall
Joined: 10 Nov 2005 Posts: 259 Location: Netherlands
|
Posted: Fri Nov 06, 2009 6:34 am Post subject: any ideas on how to get libgcov.a working? |
|
|
| 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 |
|
 |
theHobbit
Joined: 30 Sep 2006 Posts: 65
|
Posted: Mon Nov 09, 2009 1:23 pm Post subject: |
|
|
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 |
|
 |
Heimdall
Joined: 10 Nov 2005 Posts: 259 Location: Netherlands
|
Posted: Tue Nov 10, 2009 1:20 am Post subject: |
|
|
| 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 |
|
 |
theHobbit
Joined: 30 Sep 2006 Posts: 65
|
Posted: Mon Nov 16, 2009 1:26 pm Post subject: |
|
|
| 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 |
|
 |
|