Changeset 129 for trunk/Softwares


Ignore:
Timestamp:
Jun 29, 2009, 6:38:40 PM (16 years ago)
Author:
rosiere
Message:

1) Debug_Signal

Location:
trunk/Softwares/MiBench
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Softwares/MiBench/Makefile

    r124 r129  
    2525MIBENCH_DATA_PATH               = $(MORPHEO_TOPLEVEL)/Softwares/MiBench/data
    2626
    27 FLAGS                           = -DMIBENCH_DATA_PATH=\"$(MIBENCH_DATA_PATH)\" -DNB_THREAD_MAX=$(NB_THREAD_MAX)
     27FLAGS                           = -DMIBENCH_DATA_PATH=\"$(MIBENCH_DATA_PATH)\" -DNB_THREAD_MAX=$(NB_THREAD_MAX) $(BENCHS_TYPE)
    2828
    2929#-----[ Files ]-------------------------------------------------------------------
  • trunk/Softwares/MiBench/Makefile.defs

    r124 r129  
    1818                        security.sha        \
    1919                        none
     20
     21BENCHS_TYPE             = -DMIBENCH_SMALL
  • trunk/Softwares/MiBench/src/c/benchmark.c

    r118 r129  
    99#endif
    1010
    11   #define MiBench_small
    12 //#define MiBench_large
     11#if !defined(MIBENCH_SMALL) && !defined(MIBENCH_LARGE)
     12# error "MIBENCH_SMALL or MIBENCH_LARGE must be defined"
     13#endif
    1314
    1415//-----[ automative ]-----------------------------
     
    4344  printf("***** automative.basicmath - Begin *****\n");
    4445
    45 #ifdef MiBench_small
     46#ifdef MIBENCH_SMALL
    4647  main_basicmath_small ();
    4748#endif
    48 #ifdef MiBench_large
     49#ifdef MIBENCH_LARGE
    4950  main_basicmath_large ();
    5051#endif
     
    5657//                                                       [ run_automative_bitcount ]
    5758//=======================================================================================
    58 #ifdef MiBench_small
     59#ifdef MIBENCH_SMALL
    5960void main_bitcount_small (void)
    6061{
     
    8182#endif
    8283
    83 #ifdef MiBench_large
     84#ifdef MIBENCH_LARGE
    8485void main_bitcount_large (void)
    8586{
     
    110111  printf("***** automative.bitcount - Begin *****\n");
    111112 
    112 #ifdef MiBench_small
     113#ifdef MIBENCH_SMALL
    113114  main_bitcount_small ();
    114115#endif
    115 #ifdef MiBench_large
     116#ifdef MIBENCH_LARGE
    116117  main_bitcount_large ();
    117118#endif
     
    123124//                                                       [ run_automative_qsort ]
    124125//=======================================================================================
    125 #ifdef MiBench_small
     126#ifdef MIBENCH_SMALL
    126127void _main_qsort_small (void)
    127128{
     
    150151#endif
    151152
    152 #ifdef MiBench_large
     153#ifdef MIBENCH_LARGE
    153154void _main_qsort_large (void)
    154155{
     
    181182  printf("***** automative.qsort - Begin *****\n");
    182183 
    183 #ifdef MiBench_small
     184#ifdef MIBENCH_SMALL
    184185  _main_qsort_small ();
    185186#endif
    186 #ifdef MiBench_large
     187#ifdef MIBENCH_LARGE
    187188  _main_qsort_large ();
    188189#endif
     
    194195//                                                       [ run_automative_susan ]
    195196//=======================================================================================
    196 #ifdef MiBench_small
     197#ifdef MIBENCH_SMALL
    197198void main_susan_small (void)
    198199{
     
    261262#endif
    262263
    263 #ifdef MiBench_large
     264#ifdef MIBENCH_LARGE
    264265void main_susan_large (void)
    265266{
     
    332333  printf("***** automative.susan - Begin *****\n");
    333334 
    334 #ifdef MiBench_small
     335#ifdef MIBENCH_SMALL
    335336  main_susan_small ();
    336337#endif
    337 #ifdef MiBench_large
     338#ifdef MIBENCH_LARGE
    338339  main_susan_large ();
    339340#endif
     
    346347//=======================================================================================
    347348
    348 #ifdef MiBench_small
     349#ifdef MIBENCH_SMALL
    349350void main_dijkstra_small (void)
    350351{
     
    379380
    380381
    381 #ifdef MiBench_large
     382#ifdef MIBENCH_LARGE
    382383void main_dijkstra_large (void)
    383384{
     
    415416  printf("***** network.dijkstra - Begin *****\n");
    416417 
    417 #ifdef MiBench_small
     418#ifdef MIBENCH_SMALL
    418419  main_dijkstra_small ();
    419420#endif
    420 #ifdef MiBench_large
     421#ifdef MIBENCH_LARGE
    421422  main_dijkstra_large ();
    422423#endif
     
    432433  printf("***** office.stringsearch - Begin *****\n");
    433434
    434 #ifdef MiBench_small
     435#ifdef MIBENCH_SMALL
    435436  main_stringsearch_small ();
    436437#endif
    437 #ifdef MiBench_large
     438#ifdef MIBENCH_LARGE
    438439  main_stringsearch_large ();
    439440#endif
     
    445446//                                                       [ run_security_sha ]
    446447//=======================================================================================
    447 #ifdef MiBench_small
     448#ifdef MIBENCH_SMALL
    448449void main_sha_small (void)
    449450{
     
    472473#endif
    473474
    474 #ifdef MiBench_large
     475#ifdef MIBENCH_LARGE
    475476void main_sha_large (void)
    476477{
     
    503504  printf("***** security.sha - Begin *****\n");
    504505 
    505 #ifdef MiBench_small
     506#ifdef MIBENCH_SMALL
    506507  main_sha_small ();
    507508#endif
    508 #ifdef MiBench_large
     509#ifdef MIBENCH_LARGE
    509510  main_sha_large ();
    510511#endif
Note: See TracChangeset for help on using the changeset viewer.