<p dir="ltr"><br>
El 13/8/2015 19:35, "Joel Sherrill" <<a href="mailto:joel.sherrill@oarcorp.com">joel.sherrill@oarcorp.com</a>> escribió:<br>
><br>
><br>
><br>
> On August 13, 2015 3:34:12 PM CDT, Daniel Gutson <<a href="mailto:daniel.gutson@tallertechnologies.com">daniel.gutson@tallertechnologies.com</a>> wrote:<br>
> >I'd recommend a gcc plugin that generates your annotations; otherwise,<br>
> >dig into gcov in order to parse a .gcno file.<br>
><br>
> Covoar already produces gcov files. A previous gsoc student did that. This was a bonus task and we were never 100% confident in the gcov files produced.</p>
<p dir="ltr">He needs a static analysis tool. Is covoar the case?</p>
<p dir="ltr">><br>
> I would recommend pulling this thread. Produce the normal gcc coverage files, use covoar to produce gcov files, and then run gcov on the results. Compare to what covoar reports and address discrepancies.<br>
><br>
> >On Thu, Aug 13, 2015 at 5:09 PM, Hermann Felbinger<br>
> ><<a href="mailto:hermann19829@gmail.com">hermann19829@gmail.com</a>> wrote:<br>
> >> I am looking for something that processes the source code at compile<br>
> >time. I<br>
> >> need this information to map branches from execution traces to<br>
> >conditions<br>
> >> within the source code. With this information it will be possible to<br>
> >analyze<br>
> >> source coverage metrics as decision coverage or MCDC.<br>
> >><br>
> >><br>
> >> Daniel Gutson <<a href="mailto:daniel.gutson@tallertechnologies.com">daniel.gutson@tallertechnologies.com</a>> schrieb am Do.,<br>
> >13.<br>
> >> Aug. 2015 um 21:50 Uhr:<br>
> >>><br>
> >>> 1) Are you looking for something statically processed (i.e. at<br>
> >compile<br>
> >>> time) or at runtime? (such as gcov)<br>
> >>> 2) Are you looking for a way to add _your_ annotations, or a way to<br>
> >>> _extract_ information?<br>
> >>><br>
> >>> In any case, the best way I can think of is with a gcc plugin.<br>
> >>><br>
> >>> Have you seen gcc's -ftest-coverage option?<br>
> >>><br>
> >>> Daniel.<br>
> >>><br>
> >>> On Thu, Aug 13, 2015 at 4:06 PM, Hermann Felbinger<br>
> >>> <<a href="mailto:hermann19829@gmail.com">hermann19829@gmail.com</a>> wrote:<br>
> >>> > Hi all!<br>
> >>> ><br>
> >>> > I am working on a tool to analyze source code coverage for RTEMS.<br>
> >>> > Currently I am looking for a tool to annotate source code such<br>
> >that I<br>
> >>> > can<br>
> >>> > extract information about statements and conditions that affect<br>
> >the<br>
> >>> > control<br>
> >>> > flow of a program.<br>
> >>> > A similar tool exists for Ada programs. They call this information<br>
> >>> > 'Source<br>
> >>> > Coverage Obligations'. Some information about SCOs can be found in<br>
> >[1].<br>
> >>> > I attached a program triangle.c which contains some if-statements.<br>
> >Each<br>
> >>> > of<br>
> >>> > these statements contains two or more conditions. The second<br>
> >attached<br>
> >>> > file<br>
> >>> > is the output of compiling triangle.c with<br>
> >>> > gcc -O1 -fdump-tree-cfg -o triangle triangle.c<br>
> >>> > This output is almost what I am looking for, but I think that<br>
> >there has<br>
> >>> > to<br>
> >>> > be something better out there.<br>
> >>> ><br>
> >>> > Does anybody of you know a tool which I can use to annotate source<br>
> >code?<br>
> >>> ><br>
> >>> > Best,<br>
> >>> > Hermann<br>
> >>> ><br>
> >>> > [1] <a href="http://docs.adacore.com/gnatcoverage-docs/html/cov_source.html">http://docs.adacore.com/gnatcoverage-docs/html/cov_source.html</a><br>
> >>> ><br>
> >>> > _______________________________________________<br>
> >>> > devel mailing list<br>
> >>> > <a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
> >>> > <a href="http://lists.rtems.org/mailman/listinfo/devel">http://lists.rtems.org/mailman/listinfo/devel</a><br>
> >>><br>
> >>><br>
> >>><br>
> >>> --<br>
> >>><br>
> >>> Daniel F. Gutson<br>
> >>> Chief Engineering Officer, SPD<br>
> >>><br>
> >>> San Lorenzo 47, 3rd Floor, Office 5<br>
> >>> Córdoba, Argentina<br>
> >>><br>
> >>> Phone: +54 351 4217888 / +54 351 4218211<br>
> >>> Skype: dgutson<br>
> >>> LinkedIn: <a href="http://ar.linkedin.com/in/danielgutson">http://ar.linkedin.com/in/danielgutson</a><br>
> ><br>
> ><br>
> ><br>
> >--<br>
> ><br>
> >Daniel F. Gutson<br>
> >Chief Engineering Officer, SPD<br>
> ><br>
> >San Lorenzo 47, 3rd Floor, Office 5<br>
> >Córdoba, Argentina<br>
> ><br>
> >Phone: +54 351 4217888 / +54 351 4218211<br>
> >Skype: dgutson<br>
> >LinkedIn: <a href="http://ar.linkedin.com/in/danielgutson">http://ar.linkedin.com/in/danielgutson</a><br>
> >_______________________________________________<br>
> >devel mailing list<br>
> ><a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
> ><a href="http://lists.rtems.org/mailman/listinfo/devel">http://lists.rtems.org/mailman/listinfo/devel</a><br>
><br>
> --joel<br>
</p>