久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 3208|回復: 10
打印 上一主題 下一主題
收起左側

一個51單片機的性能測試源碼

[復制鏈接]
跳轉到指定樓層
樓主
ID:384624 發表于 2018-8-9 15:18 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
目前我無論如何改代碼都無法在keil中編釋通過,特來請高人指點,
源碼下載網址: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. }
復制代碼


評分

參與人數 1黑幣 +50 收起 理由
admin + 50 共享資料的黑幣獎勵!

查看全部評分

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏1 分享淘帖 頂 踩
回復

使用道具 舉報

沙發
ID:384624 發表于 2018-8-9 15:57 | 只看該作者
希望管理員幫我看看,這是我第一個開源項目,能幫我實現小目標嗎。
回復

使用道具 舉報

板凳
ID:384624 發表于 2018-8-9 15:59 | 只看該作者
能不能幫我看看,這是我第一個開源項目,如果無法在51上跑起來,龍芯群里的人會笑話我,我以前牛吹大了,說這程序能在51上跑,結果不行。
回復

使用道具 舉報

地板
ID:380391 發表于 2018-8-10 08:01 來自觸屏版 | 只看該作者
51上面time.h這些c標準庫里的東西能隨便用嗎?
回復

使用道具 舉報

5#
ID:155507 發表于 2018-8-10 08:43 | 只看該作者
c51里面好像沒有time.h,這個應該是標準c的函數。

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

我感覺至少clock_t clock(void)函數是需要你自己實現的。
回復

使用道具 舉報

6#
ID:384624 發表于 2018-8-11 06:08 來自觸屏版 | 只看該作者
angmall 發表于 2018-8-10 08:43
c51里面好像沒有time.h,這個應該是標準c的函數。

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

打算用定時器計時,現在遇到變量非法問題
回復

使用道具 舉報

7#
ID:155507 發表于 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;                //設置定時器模式
  19.         TMOD |= 0x01;          //使用模式1,16位定時器,使用"|"符號可以在使用多個定時器時不受影響                     
  20.         TH0=0xFC;              //給定初值,這里使用定時器0 1毫秒@12.000MHz
  21.         TL0=0x18;                 //設置定時初值
  22.         EA=1;            //總中斷打開
  23.         ET0=1;           //定時器中斷打開
  24.         TF0 = 0;                //清除TF0標志
  25.         TR0=1;           //定時器開關打開 定時器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 */

復制代碼

評分

參與人數 1黑幣 +10 收起 理由
小旗風 + 10 多謝高人寫程序,讓我在龍芯群抬得起頭。

查看全部評分

回復

使用道具 舉報

8#
ID:155507 發表于 2018-8-11 09:17 | 只看該作者
serial.h


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

  4. /*------------------------------------------------
  5.                    函數聲明
  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為波特率發生器
  16.     SCON  = 0x50;                // SCON: 模式 1, 8-bit UART, 使能接收  
  17.         TMOD &= 0x0F;                //設定定時器1
  18.     TMOD |= 0x20;               // TMOD: timer 1, mode 2, 8-bit 重裝
  19.     TH1   = 0xFD;               // TH1:  重裝值 9600 波特率 晶振 12.000MHz
  20.         TL1 = 0xFD;                                        //設定定時初值
  21.     TR1   = 1;                  // TR1:  timer 1 打開
  22.         ET1 = 0;                                        //禁止定時器1中斷       
  23.     EA    = 1;                  //打開總中斷
  24.     //ES    = 1;                  //打開串口中斷
  25. }
  26.                     
  27. /*------------------------------------------------
  28.                     主函數
  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. 上面代碼調試運行后,串口不斷輸出"hello world",程序陷入死循環。
  54. 問題的解決:在程序末尾應加上while(1);
  55. 原因:如果不加while(1); 將執行一條RET指令,這條指令會讓程序復
  56. 位(軟件復位,從堆棧彈出0000H到PC寄存器),復位后程序重新開始
  57. 執行。
  58. 思考:習慣了window下編程,主程序執行完了就退出到操作系統,單片機就
  59. 不一樣了,退到哪里呢?以下是單片機和編譯器的對話:
  60. 單片機:我沒事做了,死了算了~~~
  61. 編譯器:想死?你還是復位吧~~~RET
  62. 單片機:o,shit~~~

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

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

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

  75. 在格式控制字符中,b表示byte
  76. 以十進制輸出uint8_t : %bu
  77. 以十進制輸出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



復制代碼

評分

參與人數 1黑幣 +10 收起 理由
小旗風 + 10 多謝高人寫程序,讓我在龍芯群抬得起頭。

查看全部評分

回復

使用道具 舉報

9#
ID:155507 發表于 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. */

復制代碼

評分

參與人數 1黑幣 +10 收起 理由
小旗風 + 10 多謝高人寫程序,讓我在龍芯群抬得起頭。

查看全部評分

回復

使用道具 舉報

10#
ID:384624 發表于 2018-8-13 09:37 | 只看該作者
感謝高人指點,讓我慫回龍芯那群粉。
回復

使用道具 舉報

11#
ID:384624 發表于 2018-8-13 10:02 | 只看該作者
希望高人把程序運行一下,截個圖!
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 精品成人在线观看 | 手机看片169| 亚洲一区二区三区久久久 | 亚洲超碰在线观看 | 男人的天堂在线视频 | 亚洲一在线 | 两性午夜视频 | 国产精品一区在线观看 | 欧美一区二区视频 | 国产激情视频 | 综合色站导航 | 欧美精品一区免费 | 午夜影院视频在线观看 | 国产精品一区二区在线播放 | 自拍视频一区二区三区 | 国产在线精品一区二区 | 九九热在线观看 | 成人激情视频免费在线观看 | 欧美日韩久久久久 | 日韩欧美国产一区二区 | 中文字幕电影在线观看 | 99精品99 | 一区二区三区四区国产 | 欧美自拍日韩 | 成人免费激情视频 | 黄色毛片在线看 | 欧美一区二区三区在线观看 | 99精品电影 | av国产精品 | 国产成人午夜高潮毛片 | 成人视屏在线观看 | 亚洲xxxxx | 岛国午夜| 精品欧美一区二区三区久久久 | 剑来高清在线观看 | 色婷婷综合久久久中字幕精品久久 | 久久专区 | 欧美精品一区二区三区在线 | 爱综合| 99久久婷婷国产综合精品电影 | 日韩在线一区二区 |