Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Add GCOV Runtime#80

Open
andressbarajas wants to merge 1 commit intomasterfrom
gcov
Open

Add GCOV Runtime#80
andressbarajas wants to merge 1 commit intomasterfrom
gcov

Conversation

@andressbarajas
Copy link
Copy Markdown
Collaborator

@andressbarajas andressbarajas commented May 10, 2025

This PR introduces a highly optimized, minimal GCOV runtime. It enables support for -fprofile-generate and -fprofile-use, allowing developers to collect execution coverage and value profiling data on SH-4 hardware. Key features include:

  • GCDA file generation and dumping via __gcov_dump() and __gcov_exit()
  • Support for TopN value profiling (__gcov_topn_values_profiler)
  • Lightweight merging and reset of counters
  • Platform-specific path handling for output
  • Strict memory and performance constraints

This lays the foundation for full profiling support and future PGO integration.

@andressbarajas andressbarajas force-pushed the gcov branch 2 times, most recently from e906c93 to b8141cb Compare May 10, 2025 16:49
@andressbarajas andressbarajas changed the title Add Lightweight GCOV Runtime Add GCOV Runtime May 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant