What problem does it solve?
This Skill helps developers navigate the complexities of the GCC compiler, enabling them to select optimal build flags, understand and resolve compilation errors, and tune performance.
Core Features & Use Cases
- Flag Selection: Guides users on choosing appropriate flags for debug, release, optimization, and sanitization builds.
- Error Triage: Provides common error patterns and their solutions, such as undefined references and multiple definitions.
- Optimization & LTO/PGO: Explains how to leverage Link-Time Optimization (LTO) and Profile-Guided Optimization (PGO) for performance gains.
- Use Case: A developer encounters a cryptic "undefined reference" error during linking and needs to quickly identify the missing library or incorrect flag order.
Quick Start
Use the gcc skill to find the correct flags for a release build with LTO enabled.