Return to Main Contents
This readme-big.txt describes the usage of the bitcov add-on with non-bit (real counter) targets. Documentation in index.html and qstart.txt included here per reference.

Enabling big/real counters

Additionally to enabling this package

RUN_AFTER_INSTR = ctc2static

you have to add the define CTC_NO_BITS to OPT_ADD_COMPILE, e.g.

  OPT_ADD_COMPILE = -I/usr/local/include
  OPT_ADD_COMPILE + -DCTC_NO_BITS

Creating the counter array

any2mem (v0.22) now displays also to be added settings based on default CTC++ counter of unsigned long.

unsigned long CTC_array[30] = {0};

Just adjust unsigned long to the type of CTC_COUNTER, if you have changed this in CTC++ yourself.

Running dmp2dat

dmp2txt (v0.22) has been extended to read little and big endian CTC_COUNTER arrays. (or -l8, -b8, -l64, -l128, -b64, -b128)

Timing instrumentation

It is principle possible now to use timing instrumentation here. sizeof(CTC_TIMER) has to be equal to sizeof(CTC_COUNTER), have a look at other CTC++ instrumentation. You need to add also to add globally once:

 CTC_TIMER        ctc_curf_start = 0;
 static CTC_TIMER ctc_sink_timer = 0;
 CTC_TIMER*       ctc_curf_tp = &ctc_sink_timer;