Proposal: faster and smaller MC/DC
This post describes a proposal and is a call for clients, if you
will. I have an idea for an optimization in the GCC MC/DC
instrumentation (-fcondition-coverage) that I estimate would reduce
the overhead in both compile time, object size, and run time, roughly
2-3 times, and I am looking for clients to fund this work.
GCC has supported MC/DC since version 14 (released May 2024) and works quite well. I recently fixed a performance bug that made a massive difference for (very) large expressions, which went unnoticed for a while because such large expressions are quite uncommon and the performance has been adequate. I do believe we can improve both the compile time and the quality of instrumentation further.