欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標(biāo)題: 一個51單片機(jī)的性能測試源碼 [打印本頁]

作者: 小旗風(fēng)    時間: 2018-8-9 15:18
標(biāo)題: 一個51單片機(jī)的性能測試源碼
目前我無論如何改代碼都無法在keil中編釋通過,特來請高人指點,
源碼下載網(wǎng)址:https://gitee.com/test386/test
以下是源碼:
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <time.h>
  4. #include <math.h>
  5. #define INTEG_FUNC(x)  fabs(sin(x))
  6. double dclock(void);
  7. int main(int argc, char * argv[])
  8. {
  9.   clock_t start, finish;
  10.   double  duration;  
  11.   long * pi, * t, m, n, r, s;
  12.   int t0[][3] = {48, 32, 20, 24, 8, 4}, k0[][3] = {1, 1, 0, 1, 1, 1};
  13.   int n0[][3] = {18, 57, 239, 8, 57, 239}, d, i, j, k, p, q;

  14.   d = (argc > 1) ? (((i = atoi(argv[1])) < 0) ? 0 : i) : 9999;
  15.   q = (argc > 2) ? 1 : 0;
  16.   printf("%s\n\n", "pi calc..................................");
  17.   printf("pi= %s%d * arctg(1/%d) %s %d * arctg(1/%d) %s %d * arctg(1/%d) [%s]\n",
  18.     k0[q][0] ? "" : "-", t0[q][0], n0[q][0], k0[q][1] ? "+" : "-", t0[q][1],
  19.     n0[q][1], k0[q][2] ? "+" : "-", t0[q][2], n0[q][2], q ? "Stomer" : "Gauss");
  20.   if ((t = (long *)calloc((d += 5) + 1, sizeof(long))) == NULL) return 1;
  21.   if ((pi = (long *)calloc(d + 1, sizeof(long))) == NULL) return 2;

  22.   start = clock();

  23.   for (i = d; i >= 0; i--) pi[i] = 0;
  24.   for (p = 0; p < 3; p++) {
  25.     for (k=k0[q][p], n=n0[q][p], t[i=j=d]=t0[q][p], i--; i >= 0; i--) t[i] = 0;
  26.     for (r = 0, i = j; i >= 0; i--) {
  27.       r = (m = 10 * r + t[i]) % n;
  28.       t[i] = m / n;
  29.       k ? (pi[i] += t[i]) : (pi[i] -= t[i]);
  30.     }
  31.     while (j > 0 && t[j] == 0) j--;
  32.     for (k = !k, s = 3, n *= n; j > 0; k = !k, s += 2) {
  33.       for (r = 0, i = j; i >= 0; i--) {
  34.         r = (m = 10 * r + t[i]) % n;
  35.         t[i] = m / n;
  36.       }
  37.       while (j > 0 && t[j] == 0) j--;
  38.       for (r = 0, i = j; i >= 0; i--) {
  39.         r = (m = 10 * r + t[i]) % s;
  40.         m /= s;
  41.         k ? (pi[i] += m) : (pi[i] -= m);
  42.       }
  43.     }
  44.   }
  45.   for (n = i = 0; i <= d; pi[i++] = r) {
  46.     n = (m = pi[i] + n) / 10;
  47.     if ((r = m % 10) < 0) r += 10, n--;
  48.   }

  49.   printf("pi= %ld.", pi[d]);
  50.   for (i = d - 1; i >= 5; i--)
  51.     printf("%ld%s", pi[i], ((m = d - i + 5) % 65) ? ((m % 5) ? "" : " ") : "\n");
  52.   printf("%sDIGITS: %d\n", (m % 65) ? "\n" : "", d - 5);

  53. //_______________________________________
  54. // Loop counters and number of interior points
  55.    unsigned int ia, ja, Na;
  56.    // Stepsize, independent variable x, and accumulated sum
  57.    double  duration2;
  58.    double stepa, x_i, suma;
  59.    // Timing variables for evaluation   
  60.    double interval_begin = 0.0;
  61.    // Complete integral at
  62.    double interval_end = 2.0 * 3.141592653589793238;
  63.    // Start timing for the entire application
  64.    printf("     \n");
  65.    printf("    Number of    | Computed Integral | \n");
  66.    printf(" Interior Points |                   | \n");
  67.    for (ja=2;ja<27;ja++)
  68.    {
  69.     printf("------------------------------------- \n");
  70.      // Compute the number of (internal rectangles + 1)
  71.      Na =  1 << ja;
  72.      // Compute stepsize for Na-1 internal rectangles
  73.      stepa = (interval_end - interval_begin) / Na;
  74.      // Approx. 1/2 area in first rectangle: f(x0) * [stepa/2]
  75.      suma= INTEG_FUNC(interval_begin) * stepa / 2.0;
  76.      // Apply midpoint rule:
  77.      // Given length = f(x), compute the area of the
  78.      // rectangle of width stepa
  79.      // Suma areas of internal rectangle: f(xi + stepa) * stepa
  80.      for (ia=1;ia<Na;ia++)
  81.      {
  82.         x_i = ia * stepa;
  83.         suma += INTEG_FUNC(x_i) * stepa;
  84.      }
  85.      // Approx. 1/2 area in last rectangle: f(xN) * [stepa/2]
  86.      suma += INTEG_FUNC(interval_end) * stepa / 2.0;
  87.      printf(" %10d      |  %14e   | \n", Na, suma);
  88.    }


  89.    printf("     \n");


  90.     //_______________________________________
  91.   double  duration1;  
  92.   double  testa;
  93.   double  testb;
  94.     int  sum=0;
  95.     int  num=1;
  96.     int  sum2=0;
  97.     int  num2=2;
  98.         double   sqrt(double   x);

  99.     while(num<=90000000){
  100.         sum=sum+num;
  101.         num=num+2;
  102.         testa=sqrt(sum);
  103.         testa=testa*num;
  104.     }
  105.     printf("Anti cheating verification code is=:%d\n",sum);
  106.     printf("Floating-point precision %.38lf\n", testa);
  107.     while(num2<=90000000){
  108.         sum2=sum2+num2;
  109.         num2=num2+2;
  110.         testb=sqrt(sum2);
  111.         testb=testb*num2;
  112.     }
  113.   printf("Anti cheating verification code is=:%d\n",sum2);
  114.   printf("Floating-point precision %.38lf\n", testb);
  115.   finish = clock();
  116.   duration = (double)(finish - start) / CLOCKS_PER_SEC;  
  117.   printf("Total time %f seconds \n", duration);
  118.   printf("The less the time it is used, the more the performance becomes strongert!\n");
  119.   printf("Press Enter to exit\n");
  120.   sum = getchar( );
  121.   return 0;


  122. }
復(fù)制代碼



作者: 小旗風(fēng)    時間: 2018-8-9 15:57
希望管理員幫我看看,這是我第一個開源項目,能幫我實現(xiàn)小目標(biāo)嗎。
作者: 小旗風(fēng)    時間: 2018-8-9 15:59
能不能幫我看看,這是我第一個開源項目,如果無法在51上跑起來,龍芯群里的人會笑話我,我以前牛吹大了,說這程序能在51上跑,結(jié)果不行。
作者: InvokerZhang    時間: 2018-8-10 08:01
51上面time.h這些c標(biāo)準(zhǔn)庫里的東西能隨便用嗎?
作者: angmall    時間: 2018-8-10 08:43
c51里面好像沒有time.h,這個應(yīng)該是標(biāo)準(zhǔn)c的函數(shù)。

沒聽說過自帶的庫里有這個啊,一般都是自己寫的,畢竟大家用的CPU,晶振,精度要求都不一樣,你要求KEIL寫個通用的函數(shù),這也太難為人家了。

我感覺至少clock_t clock(void)函數(shù)是需要你自己實現(xiàn)的。

作者: 小旗風(fēng)    時間: 2018-8-11 06:08
angmall 發(fā)表于 2018-8-10 08:43
c51里面好像沒有time.h,這個應(yīng)該是標(biāo)準(zhǔn)c的函數(shù)。

沒聽說過自帶的庫里有這個啊,一般都是自己寫的,畢竟 ...

打算用定時器計時,現(xiàn)在遇到變量非法問題
作者: angmall    時間: 2018-8-11 09:13
Time.h

  1. // Time.h for C51
  2. // Prototypes for time clock functions.
  3. #ifndef _Time_h
  4. #define _Time_h

  5. #ifndef _CLOCK_T_DEFINED
  6. #define _CLOCK_T_DEFINED
  7. typedef unsigned long clock_t;
  8. #endif
  9. #define CLOCKS_PER_SEC   1000

  10. #include<reg52.h> //包含頭文件,一般情況不需要改動,頭文件包含特殊功能寄存器的定義

  11. static clock_t        Clock_Tick=0;
  12. clock_t         clock( void );

  13. /*------------------------------------------------
  14.                                         定時器初始化子程序
  15. ------------------------------------------------*/
  16. void Init_Timer0(void)
  17. {
  18.         TMOD &= 0xF0;                //設(shè)置定時器模式
  19.         TMOD |= 0x01;          //使用模式1,16位定時器,使用"|"符號可以在使用多個定時器時不受影響                     
  20.         TH0=0xFC;              //給定初值,這里使用定時器0 1毫秒@12.000MHz
  21.         TL0=0x18;                 //設(shè)置定時初值
  22.         EA=1;            //總中斷打開
  23.         ET0=1;           //定時器中斷打開
  24.         TF0 = 0;                //清除TF0標(biāo)志
  25.         TR0=1;           //定時器開關(guān)打開 定時器0開始計時
  26. }
  27. /*------------------------------------------------
  28.                                 定時器中斷子程序
  29. ------------------------------------------------*/
  30. void Timer0_isr(void) interrupt 1 using 1
  31. {
  32.         TH0=0xFC;                  //重新賦值 1毫秒
  33.         TL0=0x18;
  34.        
  35.         Clock_Tick++;

  36. }

  37. clock_t        clock( void )
  38. {
  39.         return Clock_Tick;
  40. }

  41. #endif /* _Time_h */

復(fù)制代碼

作者: angmall    時間: 2018-8-11 09:17
serial.h


  1. #define XON  0x11
  2. #define XOFF 0x13
  3. sfr AUXR=0x8E;

  4. /*------------------------------------------------
  5.                    函數(shù)聲明
  6. ------------------------------------------------*/
  7. void SendStr(unsigned char *s);
  8. /*------------------------------------------------
  9.                     串口初始化
  10. ------------------------------------------------*/
  11. void InitUART  (void)
  12. {
  13.         PCON &= 0x7F;                //波特率不倍速
  14.         AUXR &= 0xBF;                //定時器1時鐘為Fosc/12,即12T
  15.         AUXR &= 0xFE;                //串口1選擇定時器1為波特率發(fā)生器
  16.     SCON  = 0x50;                // SCON: 模式 1, 8-bit UART, 使能接收  
  17.         TMOD &= 0x0F;                //設(shè)定定時器1
  18.     TMOD |= 0x20;               // TMOD: timer 1, mode 2, 8-bit 重裝
  19.     TH1   = 0xFD;               // TH1:  重裝值 9600 波特率 晶振 12.000MHz
  20.         TL1 = 0xFD;                                        //設(shè)定定時初值
  21.     TR1   = 1;                  // TR1:  timer 1 打開
  22.         ET1 = 0;                                        //禁止定時器1中斷       
  23.     EA    = 1;                  //打開總中斷
  24.     //ES    = 1;                  //打開串口中斷
  25. }
  26.                     
  27. /*------------------------------------------------
  28.                     主函數(shù)
  29. ------------------------------------------------*/
  30. /*

  31. Example #include <stdio.h>

  32. void tst_printf (void) {
  33.   char a = 1;
  34.   int b  = 12365;
  35.   long c = 0x7FFFFFFF;

  36.   unsigned char x = 'A';
  37.   unsigned int y  = 54321;
  38.   unsigned long z = 0x4A6F6E00;

  39.   float f = 10.0;
  40.   float g = 22.95;

  41.   char buf [] = "Test String";
  42.   char *p = buf;

  43.   printf ("hello world");
  44.   printf ("char %bd int %d long %ld\n",a,b,c);
  45.   printf ("Uchar %bu Uint %u Ulong %lu\n",x,y,z);
  46.   printf ("xchar %bx xint %x xlong %lx\n",x,y,z);
  47.   printf ("String %s is at address %p\n",buf,p);
  48.   printf ("%f != %g\n", f, g);
  49.   printf ("%*f != %*g\n", (int)8, f, (int)8, g);
  50. }

  51. */

  52. /*
  53. 上面代碼調(diào)試運行后,串口不斷輸出"hello world",程序陷入死循環(huán)。
  54. 問題的解決:在程序末尾應(yīng)加上while(1);
  55. 原因:如果不加while(1); 將執(zhí)行一條RET指令,這條指令會讓程序復(fù)
  56. 位(軟件復(fù)位,從堆棧彈出0000H到PC寄存器),復(fù)位后程序重新開始
  57. 執(zhí)行。
  58. 思考:習(xí)慣了window下編程,主程序執(zhí)行完了就退出到操作系統(tǒng),單片機(jī)就
  59. 不一樣了,退到哪里呢?以下是單片機(jī)和編譯器的對話:
  60. 單片機(jī):我沒事做了,死了算了~~~
  61. 編譯器:想死?你還是復(fù)位吧~~~RET
  62. 單片機(jī):o,shit~~~

  63. 單片機(jī)串口相關(guān)問題:標(biāo)準(zhǔn)51只有一個串口,但是現(xiàn)在很多基于51內(nèi)核的單
  64. 片機(jī)都會有兩個串口或是更多,那么printf函數(shù)針對哪個串口呢?
  65. 回答:Keil\C51\LIB目錄下有個putchar.c文件,printf函數(shù)會調(diào)用該文件中的
  66. putchar函數(shù),putchar里面的使用的寄存器都是標(biāo)準(zhǔn)51的(如TI,SBUF),它
  67. 們的地址是固定的,由此可知printf函數(shù)只針對串口0。如果想讓printf函數(shù)支
  68. 持串口1或串口2。。。那么修改putchar函數(shù)的寄存器即可,比如SBUF改為
  69. SBUF1。但是能不能用printf函數(shù)對串口0,串口1。。。都適用呢,自己想辦
  70. 法吧:)

  71. 另外:如果只是用printf輸出字符串的話還是自己編個函數(shù)吧,因為printf要處
  72. 理各類數(shù)據(jù)的輸出,占用代碼空間很大,我試了一下,程序里就一條printf語
  73. 句,code就1K了,而且printf執(zhí)行起來也慢。

  74. 在C51中,使用printf()函數(shù)進(jìn)行格式化輸出時,格式控制符與ANSI C有所不同。

  75. 在格式控制字符中,b表示byte
  76. 以十進(jìn)制輸出uint8_t : %bu
  77. 以十進(jìn)制輸出int8_t : %bd


  78. */
  79. /*
  80. * putchar (full version):  expands '\n' into CR LF and handles
  81. *                          XON/XOFF (Ctrl+S/Ctrl+Q) protocol
  82. */
  83. char putchar (char c)  {

  84.   if (c == '\n')  {
  85.     if (RI)  {
  86.       if (SBUF == XOFF)  {
  87.         do  {
  88.           RI = 0;
  89.           while (!RI);
  90.         }
  91.         while (SBUF != XON);
  92.         RI = 0;
  93.       }
  94.     }
  95.     while (!TI);
  96.     TI = 0;
  97.     SBUF = 0x0d;                         /* output CR  */
  98.   }
  99.   if (RI)  {
  100.     if (SBUF == XOFF)  {
  101.       do  {
  102.         RI = 0;
  103.         while (!RI);
  104.       }
  105.       while (SBUF != XON);
  106.       RI = 0;
  107.     }
  108.   }
  109.   while (!TI);
  110.   TI = 0;
  111.   return (SBUF = c);
  112. }



  113. #if 0         // comment out versions below

  114. /*
  115. * putchar (basic version): expands '\n' into CR LF
  116. */
  117. char putchar (char c)  {
  118.   if (c == '\n')  {
  119.     while (!TI);
  120.     TI = 0;
  121.     SBUF = 0x0d;                         /* output CR  */
  122.   }
  123.   while (!TI);
  124.   TI = 0;
  125.   return (SBUF = c);
  126. }


  127. /*
  128. * putchar (mini version): outputs charcter only
  129. */
  130. char putchar (char c)  {
  131.   while (!TI);
  132.   TI = 0;
  133.   return (SBUF = c);
  134. }

  135. #endif



復(fù)制代碼


作者: angmall    時間: 2018-8-11 09:19
  1. // 第三方跨平臺cpu性能測試
  2. // https://gitee.com/test386/test#


  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <time.h>
  6. #include <math.h>
  7. #include <serial.h>
  8. #define INTEG_FUNC(x)  fabs(sin(x))
  9. double dclock(void);

  10. //int main(int argc, char * argv[])
  11. void main(void)
  12. {
  13.         clock_t start, finish;
  14.         double  duration;  
  15.         long  pi[400], t[420], m, n, r, s;
  16.         int t0[][3] = {48, 32, 20, 24, 8, 4}, k0[][3] = {1, 1, 0, 1, 1, 1};
  17.         int n0[][3] = {18, 57, 239, 8, 57, 239}, d, i, j, k, p, q;
  18.         // Loop counters and number of interior points
  19.         unsigned int ia, ja, Na;
  20.         // Stepsize, independent variable x, and accumulated sum
  21.         //double  duration2;
  22.         double stepa, x_i, suma;
  23.         // Timing variables for evaluation   
  24.         double interval_begin = 0.0;
  25.         // Complete integral at
  26.         double interval_end = 2.0 * 3.141592653589793238;
  27.         //double  duration1;  
  28.         double  testa;
  29.         double  testb;
  30.         int  sum=0;
  31.         int  num=1;
  32.         int  sum2=0;
  33.         int  num2=2;
  34.         double   sqrt(double   x);

  35.        
  36.         Init_Timer0();
  37.         InitUART();
  38.         //d = (argc > 1) ? (((i = atoi(argv[1])) < 0) ? 0 : i) : 9999;
  39.         d = 99;
  40.         //q = (argc > 2) ? 1 : 0;
  41.         q = 0;
  42.         printf("%s\n\n", "pi calc..................................");
  43.         printf("pi= %s%d * arctg(1/%d) %s %d * arctg(1/%d) %s %d * arctg(1/%d) [%s]\n",
  44.         k0[q][0] ? "" : "-", t0[q][0], n0[q][0], k0[q][1] ? "+" : "-", t0[q][1],
  45.         n0[q][1], k0[q][2] ? "+" : "-", t0[q][2], n0[q][2], q ? "Stomer" : "Gauss");
  46.        

  47.         //if ((t = (long *)calloc((d += 5) + 1, sizeof(long))) == NULL) //return 1; // Allocate 40020 bytes
  48.        
  49.         //if ((pi = (long *)calloc(d + 1, sizeof(long))) == NULL) //return 2; // Allocate 40000 byts

  50.         // The C library function clock_t clock(void) returns the number of clock ticks elapsed since the program was launched. To get the number of seconds used by the CPU, you will need to divide by CLOCKS_PER_SEC.
  51.         // On a 32 bit system where CLOCKS_PER_SEC equals 1000000 this function will return the same value approximately every 72 minutes.
  52.         // This function returns the number of clock ticks elapsed since the start of the program. On failure, the function returns a value of -1.
  53.         start = clock();

  54.         for (i = d; i >= 0; i--) pi[i] = 0;
  55.         for (p = 0; p < 3; p++) {
  56.                 for (k=k0[q][p], n=n0[q][p], t[i=j=d]=t0[q][p], i--; i >= 0; i--) t[i] = 0;
  57.                 for (r = 0, i = j; i >= 0; i--) {
  58.                         r = (m = 10 * r + t[i]) % n;
  59.                         t[i] = m / n;
  60.                         k ? (pi[i] += t[i]) : (pi[i] -= t[i]);
  61.                 }
  62.                 while (j > 0 && t[j] == 0) j--;
  63.                 for (k = !k, s = 3, n *= n; j > 0; k = !k, s += 2) {
  64.                         for (r = 0, i = j; i >= 0; i--) {
  65.                                 r = (m = 10 * r + t[i]) % n;
  66.                                 t[i] = m / n;
  67.                         }
  68.                         while (j > 0 && t[j] == 0) j--;
  69.                         for (r = 0, i = j; i >= 0; i--) {
  70.                                 r = (m = 10 * r + t[i]) % s;
  71.                                 m /= s;
  72.                                 k ? (pi[i] += m) : (pi[i] -= m);
  73.                         }
  74.                 }
  75.         }
  76.         for (n = i = 0; i <= d; pi[i++] = r) {
  77.                 n = (m = pi[i] + n) / 10;
  78.                 if ((r = m % 10) < 0) r += 10, n--;
  79.         }

  80.         printf("pi= %ld.", pi[d]);
  81.        
  82.         for (i = d - 1; i >= 5; i--)
  83.         printf("%ld%s", pi[i], ((m = d - i + 5) % 65) ? ((m % 5) ? "" : " ") : "\n");
  84.         printf("%sDIGITS: %d\n", (m % 65) ? "\n" : "", d - 5);
  85.        
  86.        
  87.         //_______________________________________
  88.         // Start timing for the entire application
  89.         printf("     \n");
  90.         printf("    Number of    | Computed Integral | \n");
  91.         printf(" Interior Points |                   | \n");
  92.                
  93.         for (ja=2;ja<27;ja++)
  94.         {
  95.                 printf("------------------------------------- \n");
  96.                
  97.                 // Compute the number of (internal rectangles + 1)
  98.                 Na =  1 << ja;
  99.                 // Compute stepsize for Na-1 internal rectangles
  100.                 stepa = (interval_end - interval_begin) / Na;
  101.                 // Approx. 1/2 area in first rectangle: f(x0) * [stepa/2]
  102.                 suma= INTEG_FUNC(interval_begin) * stepa / 2.0;
  103.                 // Apply midpoint rule:
  104.                 // Given length = f(x), compute the area of the
  105.                 // rectangle of width stepa
  106.                 // Suma areas of internal rectangle: f(xi + stepa) * stepa
  107.                 for (ia=1;ia<Na;ia++)
  108.                 {
  109.                         x_i = ia * stepa;
  110.                         suma += INTEG_FUNC(x_i) * stepa;
  111.                 }
  112.                 // Approx. 1/2 area in last rectangle: f(xN) * [stepa/2]
  113.                 suma += INTEG_FUNC(interval_end) * stepa / 2.0;
  114.                 printf(" %10d      |  %14e   | \n", Na, suma);
  115.                
  116.         }
  117.         printf("     \n");
  118.        

  119.         //_______________________________________

  120.         while(num<=90000000){
  121.                 sum=sum+num;
  122.                 num=num+2;
  123.                 testa=sqrt(sum);
  124.                 testa=testa*num;
  125.         }
  126.         printf("Anti cheating verification code is=:%d\n",sum);
  127.         printf("Floating-point precision %.38lf\n", testa);
  128.        
  129.         while(num2<=90000000){
  130.                 sum2=sum2+num2;
  131.                 num2=num2+2;
  132.                 testb=sqrt(sum2);
  133.                 testb=testb*num2;
  134.         }
  135.         finish = clock();
  136.         printf("Anti cheating verification code is=%d\n",sum2);
  137.         printf("Floating-point precision %.38lf\n", testb);
  138.        

  139.         //On a 32 bit system where CLOCKS_PER_SEC equals 1000000 this function will return the same value approximately every 72 minutes.
  140.         duration = (double)(finish - start) / CLOCKS_PER_SEC;  
  141.         printf("Total time %f seconds \n", duration);
  142.         printf("The less the time it is used, the more the performance becomes strongert!\n");
  143.         printf("Press Enter to exit\n");
  144.        
  145.         sum = getchar( );
  146.         //return 0;


  147. }

  148. /*
  149. Rebuild target 'Target 1'
  150. compiling Test386-51.c...
  151. Test386-51.c(59): error C174: return-expression on void-function
  152. Test386-51.c(159): error C241: 'main': auto segment too large
  153. Target not created

  154. Description       
  155. The required space for local objects exceeds the model dependent maximum. The maximum segment sizes are defined as follows: SMALL 128 bytes COMPACT 256 bytes LARGE 65535 bytes

  156. Rebuild target 'Target 1'
  157. compiling Test386-51.c...
  158. linking...
  159. Program Size: data=23.2 xdata=3451 code=8924
  160. "Test386-51" - 0 Error(s), 0 Warning(s).

  161. Rebuild target 'Target 1'
  162. compiling Test386-51.c...
  163. linking...
  164. Program Size: data=23.2 xdata=3451 code=8980
  165. creating hex file from "Test386-51"...
  166. "Test386-51" - 0 Error(s), 0 Warning(s).

  167. */

復(fù)制代碼

作者: 小旗風(fēng)    時間: 2018-8-13 09:37
感謝高人指點,讓我慫回龍芯那群粉。
作者: 小旗風(fēng)    時間: 2018-8-13 10:02
希望高人把程序運行一下,截個圖!




歡迎光臨 (http://m.raoushi.com/bbs/) Powered by Discuz! X3.1