Symbol Size Variance

Gedare Bloom gedare at rtems.org
Thu May 24 13:04:36 UTC 2018


On Wed, May 23, 2018 at 2:28 AM, Sebastian Huber
<sebastian.huber at embedded-brains.de> wrote:
> On 23/05/18 01:06, Joel Sherrill wrote:
>>
>> Or we may need to limit ourselves to source line mapping on a per
>> executable
>> basis. And generate reports using gcov output if we see methods change
>> between executables. I have shied away from gcov as the primary format
>> because I don't see how to do subexpression analysis.
>>
>>   if (a == 0 || b == 1)
>>
>> That's one line of source but two sub-expressions. Unless it's changed
>> recently, the debug info is not at a level of granularity to generate
>> gcov data that can tell we always too the first sub-expression.
>>
>> I'm not arguing -- just saying that doing the analysis at the asm level
>> gives us branch information I don't think we get via source line
>> analysis and gcov.
>
>
> Is the --all-blocks option of gcov helpful here?
>
> https://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html#Invoking-Gcov
>

Yes, that seems like it should work to me.


More information about the devel mailing list