亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? dhry_1.c

?? 一些ARM的源程序
?? C
字號(hào):
/*
 ****************************************************************************
 *
 *                   "DHRYSTONE" Benchmark Program
 *                   -----------------------------
 *                                                                            
 *  Version:    C, Version 2.1
 *                                                                            
 *  File:       dhry_1.c (part 2 of 3)
 *
 *  Date:       May 25, 1988
 *
 *  Author:     Reinhold P. Weicker
 *
 ****************************************************************************
 */

#include "dhry.h"

/* Global Variables: */

Rec_Pointer     Ptr_Glob,Next_Ptr_Glob;
int             Int_Glob;
Boolean         Bool_Glob;
char            Ch_1_Glob,Ch_2_Glob;
int             Arr_1_Glob [50];
int             Arr_2_Glob [50] [50];

extern char*	malloc ();
Enumeration     Func_1 ();

/* forward declaration necessary since Enumeration may not simply be int */

#ifndef REG
	Boolean Reg = false;
#define REG
/* REG becomes defined as empty */
/* i.e. no register variables   */
#else
	Boolean Reg = true;
#endif

#define TIME

/* variables for time measurement: */
#ifdef TIME
extern long     time();         /* see library function "time"  */
#define Too_Small_Time 2        /* Measurements should last at least 2 seconds */
#endif

#ifdef MSC_CLOCK
extern 			clock_t clock();
#define 		Too_Small_Time			(2*HZ)
#endif

long            Begin_Time,End_Time,User_Time;
float           Microseconds,Dhrystones_Per_Second;

/* end of variables for time measurement */


/* main program, corresponds to procedures        */
/* Main and Proc_0 in the Ada version             */
int main ()
{
		One_Fifty       Int_1_Loc;
	REG One_Fifty       Int_2_Loc;
		One_Fifty       Int_3_Loc;
	REG char            Ch_Index;
		Enumeration     Enum_Loc;
		Str_30          Str_1_Loc;
		Str_30          Str_2_Loc;
	REG int             Run_Index;
	REG int             Number_Of_Runs;

  /* Initializations */

  Next_Ptr_Glob = (Rec_Pointer) malloc (sizeof (Rec_Type));
  Ptr_Glob = (Rec_Pointer) malloc (sizeof (Rec_Type));

  Ptr_Glob->Ptr_Comp                    = Next_Ptr_Glob;
  Ptr_Glob->Discr                       = Ident_1;
  Ptr_Glob->variant.var_1.Enum_Comp     = Ident_3;
  Ptr_Glob->variant.var_1.Int_Comp      = 40;
  strcpy (Ptr_Glob->variant.var_1.Str_Comp, 
          "DHRYSTONE PROGRAM, SOME STRING");
  strcpy (Str_1_Loc, "DHRYSTONE PROGRAM, 1'ST STRING");

  Arr_2_Glob [8][7] = 10;
        /* Was missing in published program. Without this statement,    */
        /* Arr_2_Glob [8][7] would have an undefined value.             */
        /* Warning: With 16-Bit processors and Number_Of_Runs > 32000,  */
        /* overflow may occur for this array element.                   */

  printf ("\n");
  printf ("Dhrystone Benchmark, Version 2.1 (Language: C)\n");
  printf ("\n");
  if (Reg)
  {
    printf ("Program compiled with 'register' attribute\n");
    printf ("\n");
  }
  else
  {
    printf ("Program compiled without 'register' attribute\n");
    printf ("\n");
  }
  printf ("Please give the number of runs through the benchmark: ");
  {
    int n;
    scanf ("%d", &n);
    Number_Of_Runs = n;
  }
  printf ("\n");

  printf ("Execution starts, %d runs through Dhrystone\n", Number_Of_Runs);

  /***************/
  /* Start timer */
  /***************/
 
#ifdef TIME
  Begin_Time = time ( (long *) 0);
#endif
#ifdef MSC_CLOCK
  Begin_Time = clock();
#endif

  for (Run_Index = 1; Run_Index <= Number_Of_Runs; ++Run_Index)
  {

    Proc_5();
    Proc_4();
      /* Ch_1_Glob == 'A', Ch_2_Glob == 'B', Bool_Glob == true */
    Int_1_Loc = 2;
    Int_2_Loc = 3;
    strcpy (Str_2_Loc, "DHRYSTONE PROGRAM, 2'ND STRING");
    Enum_Loc = Ident_2;
    Bool_Glob = ! Func_2 (Str_1_Loc, Str_2_Loc);
      /* Bool_Glob == 1 */
    while (Int_1_Loc < Int_2_Loc)  /* loop body executed once */
    {
      Int_3_Loc = 5 * Int_1_Loc - Int_2_Loc;
        /* Int_3_Loc == 7 */
      Proc_7 (Int_1_Loc, Int_2_Loc, &Int_3_Loc);
        /* Int_3_Loc == 7 */
      Int_1_Loc += 1;
    } /* while */
      /* Int_1_Loc == 3, Int_2_Loc == 3, Int_3_Loc == 7 */
    Proc_8 (Arr_1_Glob, Arr_2_Glob, Int_1_Loc, Int_3_Loc);
      /* Int_Glob == 5 */
    Proc_1 (Ptr_Glob);
    for (Ch_Index = 'A'; Ch_Index <= Ch_2_Glob; ++Ch_Index)
                             /* loop body executed twice */
    {
      if (Enum_Loc == Func_1 (Ch_Index, 'C'))
          /* then, not executed */
        {
        Proc_6 (Ident_1, &Enum_Loc);
        strcpy (Str_2_Loc, "DHRYSTONE PROGRAM, 3'RD STRING");
        Int_2_Loc = Run_Index;
        Int_Glob = Run_Index;
        }
    }
      /* Int_1_Loc == 3, Int_2_Loc == 3, Int_3_Loc == 7 */
    Int_2_Loc = Int_2_Loc * Int_1_Loc;
    Int_1_Loc = Int_2_Loc / Int_3_Loc;
    Int_2_Loc = 7 * (Int_2_Loc - Int_3_Loc) - Int_1_Loc;
      /* Int_1_Loc == 1, Int_2_Loc == 13, Int_3_Loc == 7 */
    Proc_2 (&Int_1_Loc);
      /* Int_1_Loc == 5 */

  } /* loop "for Run_Index" */

  /**************/
  /* Stop timer */
  /**************/
  
#ifdef TIME
  End_Time = time ( (long *) 0);
#endif
#ifdef MSC_CLOCK
  End_Time = clock();
#endif

  printf ("Execution ends\n");
  printf ("\n");
  printf ("Final values of the variables used in the benchmark:\n");
  printf ("\n");
  printf ("Int_Glob:            %d\n", Int_Glob);
  printf ("        should be:   %d\n", 5);
  printf ("Bool_Glob:           %d\n", Bool_Glob);
  printf ("        should be:   %d\n", 1);
  printf ("Ch_1_Glob:           %c\n", Ch_1_Glob);
  printf ("        should be:   %c\n", 'A');
  printf ("Ch_2_Glob:           %c\n", Ch_2_Glob);
  printf ("        should be:   %c\n", 'B');
  printf ("Arr_1_Glob[8]:       %d\n", Arr_1_Glob[8]);
  printf ("        should be:   %d\n", 7);
  printf ("Arr_2_Glob[8][7]:    %d\n", Arr_2_Glob[8][7]);
  printf ("        should be:   Number_Of_Runs + 10\n");
  printf ("Ptr_Glob->\n");
  printf ("  Ptr_Comp:          %d\n", (int) Ptr_Glob->Ptr_Comp);
  printf ("        should be:   (implementation-dependent)\n");
  printf ("  Discr:             %d\n", Ptr_Glob->Discr);
  printf ("        should be:   %d\n", 0);
  printf ("  Enum_Comp:         %d\n", Ptr_Glob->variant.var_1.Enum_Comp);
  printf ("        should be:   %d\n", 2);
  printf ("  Int_Comp:          %d\n", Ptr_Glob->variant.var_1.Int_Comp);
  printf ("        should be:   %d\n", 17);
  printf ("  Str_Comp:          %s\n", Ptr_Glob->variant.var_1.Str_Comp);
  printf ("        should be:   DHRYSTONE PROGRAM, SOME STRING\n");
  printf ("Next_Ptr_Glob->\n");
  printf ("  Ptr_Comp:          %d\n", (int) Next_Ptr_Glob->Ptr_Comp);
  printf ("        should be:   (implementation-dependent), same as above\n");
  printf ("  Discr:             %d\n", Next_Ptr_Glob->Discr);
  printf ("        should be:   %d\n", 0);
  printf ("  Enum_Comp:         %d\n", Next_Ptr_Glob->variant.var_1.Enum_Comp);
  printf ("        should be:   %d\n", 1);
  printf ("  Int_Comp:          %d\n", Next_Ptr_Glob->variant.var_1.Int_Comp);
  printf ("        should be:   %d\n", 18);
  printf ("  Str_Comp:          %s\n", Next_Ptr_Glob->variant.var_1.Str_Comp);
  printf ("        should be:   DHRYSTONE PROGRAM, SOME STRING\n");
  printf ("Int_1_Loc:           %d\n", Int_1_Loc);
  printf ("        should be:   %d\n", 5);
  printf ("Int_2_Loc:           %d\n", Int_2_Loc);
  printf ("        should be:   %d\n", 13);
  printf ("Int_3_Loc:           %d\n", Int_3_Loc);
  printf ("        should be:   %d\n", 7);
  printf ("Enum_Loc:            %d\n", Enum_Loc);
  printf ("        should be:   %d\n", 1);
  printf ("Str_1_Loc:           %s\n", Str_1_Loc);
  printf ("        should be:   DHRYSTONE PROGRAM, 1'ST STRING\n");
  printf ("Str_2_Loc:           %s\n", Str_2_Loc);
  printf ("        should be:   DHRYSTONE PROGRAM, 2'ND STRING\n");
  printf ("\n");

  User_Time = End_Time - Begin_Time;

  if(User_Time < Too_Small_Time)
  {
    printf ("Measured time too small to obtain meaningful results\n");
    printf ("Please increase number of runs\n");
    printf ("\n");
  }
  else
  {
#ifdef TIME
    Microseconds = (float) User_Time * Mic_secs_Per_Second 
                        / (float) Number_Of_Runs;
    Dhrystones_Per_Second = (float) Number_Of_Runs / (float) User_Time;
#else
    Microseconds = (float) User_Time * Mic_secs_Per_Second 
                        / ((float) HZ * ((float) Number_Of_Runs));
    Dhrystones_Per_Second = ((float) HZ * (float) Number_Of_Runs)
                        / (float) User_Time;
#endif
    printf ("Microseconds for one run through Dhrystone: ");
    printf ("%6.1f \n", Microseconds);
    printf ("Dhrystones per Second:                      ");
    printf ("%6.1f \n", Dhrystones_Per_Second);
    printf ("\n");
  }
  return 1;
}

void __gccmain()
{
}

Proc_1 (Ptr_Val_Par)
/******************/

REG Rec_Pointer Ptr_Val_Par;
    /* executed once */
{
  REG Rec_Pointer Next_Record = Ptr_Val_Par->Ptr_Comp;  
                                        /* == Ptr_Glob_Next */
  /* Local variable, initialized with Ptr_Val_Par->Ptr_Comp,    */
  /* corresponds to "rename" in Ada, "with" in Pascal           */
  
  structassign (*Ptr_Val_Par->Ptr_Comp, *Ptr_Glob); 
  Ptr_Val_Par->variant.var_1.Int_Comp = 5;
  Next_Record->variant.var_1.Int_Comp 
        = Ptr_Val_Par->variant.var_1.Int_Comp;
  Next_Record->Ptr_Comp = Ptr_Val_Par->Ptr_Comp;
  Proc_3 (&Next_Record->Ptr_Comp);
    /* Ptr_Val_Par->Ptr_Comp->Ptr_Comp 
                        == Ptr_Glob->Ptr_Comp */
  if (Next_Record->Discr == Ident_1)
    /* then, executed */
  {
    Next_Record->variant.var_1.Int_Comp = 6;
    Proc_6 (Ptr_Val_Par->variant.var_1.Enum_Comp, 
           &Next_Record->variant.var_1.Enum_Comp);
    Next_Record->Ptr_Comp = Ptr_Glob->Ptr_Comp;
    Proc_7 (Next_Record->variant.var_1.Int_Comp, 10, 
           &Next_Record->variant.var_1.Int_Comp);
  }
  else /* not executed */
    structassign (*Ptr_Val_Par, *Ptr_Val_Par->Ptr_Comp);
} /* Proc_1 */


Proc_2 (Int_Par_Ref)
/******************/
    /* executed once */
    /* *Int_Par_Ref == 1, becomes 4 */

One_Fifty   *Int_Par_Ref;
{
  One_Fifty  Int_Loc;  
  Enumeration   Enum_Loc;

  Int_Loc = *Int_Par_Ref + 10;
  do /* executed once */
    if (Ch_1_Glob == 'A')
      /* then, executed */
    {
      Int_Loc -= 1;
      *Int_Par_Ref = Int_Loc - Int_Glob;
      Enum_Loc = Ident_1;
    } /* if */
  while (Enum_Loc != Ident_1); /* true */
} /* Proc_2 */


Proc_3 (Ptr_Ref_Par)
/******************/
    /* executed once */
    /* Ptr_Ref_Par becomes Ptr_Glob */

Rec_Pointer *Ptr_Ref_Par;

{
  if (Ptr_Glob != Null)
    /* then, executed */
    *Ptr_Ref_Par = Ptr_Glob->Ptr_Comp;
  Proc_7 (10, Int_Glob, &Ptr_Glob->variant.var_1.Int_Comp);
} /* Proc_3 */


Proc_4 () /* without parameters */
/*******/
    /* executed once */
{
  Boolean Bool_Loc;

  Bool_Loc = Ch_1_Glob == 'A';
  Bool_Glob = Bool_Loc | Bool_Glob;
  Ch_2_Glob = 'B';
} /* Proc_4 */


Proc_5 () /* without parameters */
/*******/
    /* executed once */
{
  Ch_1_Glob = 'A';
  Bool_Glob = false;
} /* Proc_5 */


        /* Procedure for the assignment of structures,          */
        /* if the C compiler doesn't support this feature       */
#ifdef  NOSTRUCTASSIGN
memcpy (d, s, l)
register char   *d;
register char   *s;
register int    l;
{
        while (l--) *d++ = *s++;
}
#endif


?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品久久久久久久久久| 久久99精品久久久久久| 国产蜜臀av在线一区二区三区| 日韩免费观看2025年上映的电影| 欧美精品在线视频| 欧美挠脚心视频网站| 欧美性感一区二区三区| 欧美日韩在线直播| 中文字幕亚洲精品在线观看 | 久久久久国产精品麻豆ai换脸| 欧美一区二区观看视频| 日韩欧美在线影院| 精品国产百合女同互慰| 26uuu国产一区二区三区| 久久久综合网站| 国产精品毛片久久久久久久| **性色生活片久久毛片| 夜夜精品浪潮av一区二区三区| 亚洲一区av在线| 日韩vs国产vs欧美| 精品亚洲免费视频| 岛国精品一区二区| 91视频免费看| 在线不卡免费欧美| 欧美精品一区二区三区蜜臀| 国产精品网站在线| 亚洲精品成人天堂一二三| 亚洲成人综合网站| 极品尤物av久久免费看| 不卡的av中国片| 欧美在线影院一区二区| 欧美一级黄色片| 欧美韩国日本综合| 一区二区国产盗摄色噜噜| 青青草国产精品97视觉盛宴| 国产乱人伦偷精品视频不卡| 91看片淫黄大片一级在线观看| 欧美日韩激情在线| 久久一留热品黄| 亚洲欧美日韩系列| 蜜臀精品久久久久久蜜臀| 风间由美一区二区三区在线观看 | 亚洲一区成人在线| 精品一区二区三区欧美| av动漫一区二区| 欧美精品免费视频| 中文字幕第一区第二区| 亚洲一线二线三线视频| 国产综合色产在线精品 | 国产精品久久久久一区二区三区共| 亚洲九九爱视频| 紧缚奴在线一区二区三区| 93久久精品日日躁夜夜躁欧美| 91精品国产高清一区二区三区| 国产精品美女一区二区三区 | 99精品久久免费看蜜臀剧情介绍| 欧美欧美欧美欧美| 国产精品第五页| 麻豆成人免费电影| 在线精品国精品国产尤物884a| 精品少妇一区二区三区| 一区二区三区在线观看国产| 国产亚洲制服色| 日韩欧美久久一区| 亚洲色图欧洲色图婷婷| 麻豆国产精品777777在线| 91欧美一区二区| 久久综合九色综合欧美98| 亚洲一二三区在线观看| 成人高清免费观看| 337p日本欧洲亚洲大胆精品| 亚洲国产成人porn| 91碰在线视频| 中文在线资源观看网站视频免费不卡| 秋霞电影一区二区| 在线观看成人小视频| 国产精品久久久久久户外露出| 久久精品国产精品青草| 欧美日韩国产高清一区| 亚洲女人小视频在线观看| 国产福利不卡视频| 日韩精品一区二区三区老鸭窝| 亚洲国产另类精品专区| 91老司机福利 在线| 国产精品情趣视频| 国产福利精品一区| 久久欧美中文字幕| 韩国毛片一区二区三区| 日韩一级在线观看| 日韩不卡一区二区三区 | 久久久久久麻豆| 青青草国产精品亚洲专区无| 欧美日韩国产成人在线免费| 亚洲一区二区三区四区五区黄| 色狠狠桃花综合| 亚洲欧洲精品一区二区精品久久久| 国产精品99久| 国产拍欧美日韩视频二区| 激情成人午夜视频| 久久嫩草精品久久久精品一| 激情综合五月天| 亚洲精品在线网站| 韩国精品一区二区| 久久奇米777| 粉嫩在线一区二区三区视频| 国产精品视频一区二区三区不卡| 国产精品一区二区久激情瑜伽 | 中文字幕一区三区| 成人动漫视频在线| 蜜桃久久久久久| 欧美视频在线一区二区三区| 中文字幕av免费专区久久| 国产精品一二三四五| 久久久久高清精品| 国产成人h网站| 综合精品久久久| 日本丶国产丶欧美色综合| 亚洲国产综合视频在线观看| 欧美日韩精品三区| 久久99久久久欧美国产| 久久亚洲春色中文字幕久久久| 国产经典欧美精品| 1024亚洲合集| 精品视频一区三区九区| 免费成人在线网站| 国产午夜亚洲精品不卡| 成人动漫视频在线| 亚洲国产va精品久久久不卡综合| 51精品视频一区二区三区| 韩国午夜理伦三级不卡影院| 国产精品免费久久| 欧美在线视频日韩| 美女免费视频一区二区| 亚洲国产精品ⅴa在线观看| 色婷婷激情一区二区三区| 三级不卡在线观看| 久久蜜桃av一区精品变态类天堂| 成人国产电影网| 亚洲bt欧美bt精品| 亚洲麻豆国产自偷在线| 制服丝袜av成人在线看| 国产精品1024| 亚洲一区影音先锋| 26uuu久久综合| 91色九色蝌蚪| 久久不见久久见中文字幕免费| 中文字幕免费不卡| 欧美精品久久99久久在免费线| 国产麻豆欧美日韩一区| 夜夜操天天操亚洲| 精品国产伦一区二区三区观看方式| av激情成人网| 老司机午夜精品99久久| 日韩美女视频一区二区| 日韩欧美中文字幕制服| 97久久精品人人爽人人爽蜜臀| 天天影视网天天综合色在线播放| 国产欧美一区二区在线| 欧美日韩国产在线观看| 成人免费观看视频| 青青草国产精品97视觉盛宴| 亚洲欧洲成人精品av97| 日韩欧美高清dvd碟片| 91老师片黄在线观看| 国内精品伊人久久久久av一坑| 亚洲视频 欧洲视频| 亚洲精品一区二区三区精华液| 欧美中文字幕一区| 欧美电影精品一区二区| 久久奇米777| 国产99久久久国产精品| 亚洲一区二区三区四区中文字幕 | 欧美精品粉嫩高潮一区二区| 国产二区国产一区在线观看| 偷窥少妇高潮呻吟av久久免费| 国产欧美视频一区二区| 日韩精品一区二区三区视频播放| 色综合中文综合网| 日韩一区中文字幕| 26uuu另类欧美| 欧美一区二区福利在线| 欧美制服丝袜第一页| av午夜一区麻豆| 国产传媒久久文化传媒| 久久99最新地址| 日本不卡一二三区黄网| 91麻豆免费在线观看| 国产一区久久久| 麻豆精品新av中文字幕| 午夜日韩在线电影| 夜夜揉揉日日人人青青一国产精品| 日本一区二区高清| 久久九九久久九九| 精品毛片乱码1区2区3区| 制服丝袜中文字幕亚洲| 欧美三级视频在线观看| 91久久国产综合久久| 91丨porny丨首页| 91香蕉视频黄| 91丨九色丨黑人外教|