Testwell CTC++: Classical Host-Target ArrangementTypically for targets having
Target libraryA target library consisting of 3 files have to be compiled and linked to the application. This linking can be arranged to transparent or automaticallyInitiating data transferTransfer can be stimulated by atexit routine, or some other handy arrangements. Technically a function ctc_send_data() in target library gets just called.Data transferData transfer is done in one file of the target library, the typical flow is like:
if ((fp = fopen("MON.txt", "a")) != NULL) {
while ((c = ctc_get_character()) > 0) {
fputc(c, fp);
}
fclose(fp);
}
Datastream can be transferred whatever you like. fopen("/dec/serio001","a") or over network or through a proprietary channel.
Host receive dataAn applicationctc2dat updates the coverage files from e.g.
How the metrics are generatedThe code gets instrumented with the "ctc" compiler frontend, per default it increments then file static array elements.How the metrics are collected on the HostCTC++ accumulated per default coverage data a file "MON.dat" on the host. This is used for input of the report generating tools.PerformancesUsually we calculate with 20%, depends very much on coding style and used cross compiler. With the Linux kernel in multicondition mode we got 16% performance impact (test done in 100sec, now in 116sec). Some desktop applications had only 7% performance impact, on some weird cross-compilers we had at max. 53% until now...last updated: 12.09.2011 © 2008-2011 Verifysoft Technology GmbH |