Changeset 64


Ignore:
Timestamp:
Mar 5, 2008, 3:40:25 PM (11 years ago)
Author:
cameron
Message:

Document_Start/End actions; OpenMP version

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r59 r64  
    1313        $(CC) -o markup_stats markup_stats.cxx -march=pentium4
    1414
    15 markup_stats_64:        markup_stats.cxx src/xmlbuffer.h src/ilax.h src/multiliteral.h src/engine.h\
     15markup_stats_64:        markup_stats.cxx src/xmlbuffer.h src/multiliteral.h src/engine.h\
    1616                src/transpose.h src/bitlex.h src/xmlbuffer.c src/bitlex.c src/engine.c\
    1717                lib/lib_simd.h lib/sse_simd.h\
    1818                src/bytelex.h src/charsets/ASCII_EBCDIC.h
    1919        $(CC) -o markup_stats_64 markup_stats.cxx -march=nocona -m64
     20
     21markup_stats_omp:       markup_stats.cxx src/xmlbuffer.h src/multiliteral.h src/engine.h\
     22                src/transpose.h src/bitlex.h src/xmlbuffer.c src/bitlex.c src/engine.c\
     23                lib/lib_simd.h lib/sse_simd.h\
     24                src/bytelex.h src/charsets/ASCII_EBCDIC.h
     25        g++-4.2 -O3 -lgomp -fopenmp -o markup_stats_omp markup_stats.cxx -march=nocona -m64
    2026
    2127markup_stats.s: markup_stats.cxx src/xmlbuffer.h src/multiliteral.h src/engine.h\
  • trunk/markup_stats.cxx

    r57 r64  
    142142               last_item_start, last_item_stop, last_buffer_rel_pos);
    143143
    144         cout << string((char *) GetCodeUnitPtr(start_pos), end_pos - start_pos) << endl;
     144        cout << string((char *) GetCodeUnitPtr(start_pos), end_pos+1 - start_pos) << endl;
    145145
    146146
     
    222222}
    223223
     224
     225template <CodeUnit_Base C>
     226inline void ParsingEngine<C>::DocumentStart_action() {
     227}
     228
     229template <CodeUnit_Base C>
     230inline void ParsingEngine<C>::DocumentEnd_action() {
     231}
    224232
    225233#define print_stats(stat_string, count, total_lgth) \
Note: See TracChangeset for help on using the changeset viewer.