public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* libgcov on a standalone platform embedded controller
@ 2024-06-06 15:24 Christopher Campbell
  0 siblings, 0 replies; only message in thread
From: Christopher Campbell @ 2024-06-06 15:24 UTC (permalink / raw)
  To: gcc, Christopher Campbell

[-- Attachment #1: Type: text/plain, Size: 1624 bytes --]

Guy,

I have been trying to get libgcov working.
Will you please give me some guidance with a working example?
I could really use some good old fashion hand holding to gcov to work in a
standalone environment.




I have tried the following
1. invoke __gcov_dump()
     but then i get this error libgcov profiling error:<master>:Version
mismatch - expected 10.3 (experimental) (B03r) got (unknown) (ð)
     this is a know bug. There is no actual mismatch

2.
https://gcc.gnu.org/onlinedocs/gcc/gcov/profiling-and-test-coverage-in-freestanding-environments.html
This only work with the two file included.   When introduced into .cpp and
more file then compiler give
undefined  __gcov_filename_to_gcfn (f, dump, arg);

3. Tried different versions

        #"C:/Program Files (x86)/GNU Tools ARM Embedded/5.3
2016q1/lib/gcc/arm-none-eabi/5.3.1/thumb/libgcov.a"
        #"C:/Program Files (x86)/GNU Tools ARM Embedded/6.2
2016q4/lib/gcc/arm-none-eabi/6.2.1/thumb/v7e-m/fpv4-sp/hard/libgcov.a"
        #"C:/Program Files (x86)/GNU Arm Embedded Toolchain/10
2021.10/lib/gcc/arm-none-eabi/10.3.1/libgcov.a"
        #"C:/Program Files (x86)/GNU Arm Embedded Toolchain/10
2021.10/lib/gcc/arm-none-eabi/10.3.1/thumb/v7e-m+fp/softfp/libgcov.a"
        "C:/Program Files (x86)/GNU Arm Embedded Toolchain/10
2021.10/lib/gcc/arm-none-eabi/10.3.1/thumb/v7e-m+fp/hard/libgcov.a"

        #"C:/Program Files (x86)/GNU Arm Embedded Toolchain/10
2021.10/lib/gcc/arm-none-eabi/10.3.1/thumb/v6-m/nofp/libgcov.a"

Will someone please contact me?

Chris Campbell
-- 
A life well lived is its own reward

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-06 15:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-06 15:24 libgcov on a standalone platform embedded controller Christopher Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).