Changeset 2551 for proto/RE/ref/re2pbs


Ignore:
Timestamp:
Oct 24, 2012, 1:54:17 PM (7 years ago)
Author:
ksherdy
Message:

Updated reference implementation. Port to IDISA needed.

Location:
proto/RE/ref/re2pbs
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • proto/RE/ref/re2pbs/bin/re2pbsLexer.py

    r2351 r2551  
    1 # $ANTLR 3.1.3 Mar 17, 2009 19:23:44 re2pbs.g 2012-09-01 15:12:52
     1# $ANTLR 3.1.3 Mar 17, 2009 19:23:44 re2pbs.g 2012-10-24 13:58:42
    22
    33import sys
  • proto/RE/ref/re2pbs/bin/re2pbsParser.py

    r2351 r2551  
    1 # $ANTLR 3.1.3 Mar 17, 2009 19:23:44 re2pbs.g 2012-09-01 15:12:52
     1# $ANTLR 3.1.3 Mar 17, 2009 19:23:44 re2pbs.g 2012-10-24 13:58:42
    22
    33import sys
  • proto/RE/ref/re2pbs/re2pbs_demo_template.cpp

    r2317 r2551  
    1818
    1919#ifdef BUFFER_PROFILING
    20         BOM_Table * parser_timer;
    21 
    22 #elif CODE_CLOCKER
    23         #define NUM_EVENTS 1
    24         int Events[NUM_EVENTS] = {PAPI_TOT_CYC};
    25         //int Events[NUM_EVENTS] = {PAPI_L2_DCM};
    26         //int Events[NUM_EVENTS] = {PAPI_TOT_CYC, PAPI_BR_MSP};
    27         int cal_size = 20;
    28         CC * parser_timer = new CC(Events,NUM_EVENTS,cal_size);
     20    BOM_Table * transcode_timer;
     21#elif PAPI
     22                #define PAPI_EVENTS_COUNT 2
     23                int PAPI_EVENTS[PAPI_EVENTS_COUNT] = {PAPI_TOT_CYC, PAPI_BR_MSP};       
     24    CC * transcode_timer;
    2925#else
    30         void * parser_timer;
     26    void * transcode_timer;
    3127#endif
    3228
  • proto/RE/ref/re2pbs/src/demo.cpp

    r2317 r2551  
    1818
    1919#ifdef BUFFER_PROFILING
    20         BOM_Table * parser_timer;
    21 
    22 #elif CODE_CLOCKER
    23         #define NUM_EVENTS 1
    24         int Events[NUM_EVENTS] = {PAPI_TOT_CYC};
    25         //int Events[NUM_EVENTS] = {PAPI_L2_DCM};
    26         //int Events[NUM_EVENTS] = {PAPI_TOT_CYC, PAPI_BR_MSP};
    27         int cal_size = 20;
    28         CC * parser_timer = new CC(Events,NUM_EVENTS,cal_size);
     20    BOM_Table * transcode_timer;
     21#elif PAPI
     22                #define PAPI_EVENTS_COUNT 2
     23                int PAPI_EVENTS[PAPI_EVENTS_COUNT] = {PAPI_TOT_CYC, PAPI_BR_MSP};       
     24    CC * transcode_timer;
    2925#else
    30         void * parser_timer;
     26    void * transcode_timer;
    3127#endif
    3228
Note: See TracChangeset for help on using the changeset viewer.