| | |

keil c251 v5.57 uvision5开发工具 -九游会网页

软件大小:38.8 mb 软件性质: 免费软件
更新时间:2015/3/5 11:04:25 应用平台:win9x/win2000/winxp
下载次数:8470 下载来源:米尔科技
软件语言:英文 软件类别:arm开发工具 > keil c251 开发工具

keil c251 v5.57 uvision5开发工具 更新日志(2014年8月):


release date: 5 august, 2014

  • comes with compiler version c251 v5.57
  • removed: unnecessary warning c53 when bits are defined and declared in the same module.
  • corrected: problem with wrong type conversion when bitwise not operator (~) is used. example:
    volatile unsigned long va, vb;
    void main(void) {
       vb = va & ~0x2;     <-- wrong   : results in  vb = va & 0xfffd instead of  vb = va & 0xfffffffd
       vb &= ~0x2;         <-- wrong   : results in  vb &= 0xfffd instead of  vb &= 0xfffffffd
       vb = va & -3;       <-- correct : results in  vb = va & 0xfffffffd
    }
    
  • [l251 linker/locater]
    • corrected: l251 code optimization does not remove common blocks for unused functions. these code blocks remains inside the image. example: 
      unsigned char a, b, c;
      unsigned char darr [0x10];
      void funca (void) {
        darr[c] = darr[b];
      }
      void funcb (void) {
        darr[c] = darr[b];
      }
      void funcc (void) {
        darr[c] = darr[a]   darr[b];
      }
      void funcd (void) {
        darr[c] = darr[a]   darr[b];
      }
      void main(void) {
        funca ();
        funcb ();
        while(1);
      }
      ; function funca (begin)           ; function funcb (begin)            ; function funcc (begin)                ; function funcd (begin)          
          r     mov     a,#low darr          r     mov     a,#low darr           r     mov     a,#low darr -----   ----- r     mov     a,#low darr     
          r     add     a,b                  r     add     a,b                   r     add     a,b               |       r     add     a,b             
                mov     r0,a     -----   -----     mov     r0,a                        mov     r0,a              |             mov     r0,a            
                mov     a,@r0          |           mov     a,@r0                       mov     a,@r0             |             mov     a,@r0           
                mov     r7,a           |           mov     r7,a                        mov     r7,a              |             mov     r7,a            
          r     mov     a,#low darr    |     r     mov     a,#low darr           r     mov     a,#low darr -----   ----- r     mov     a,#low darr     
          r     add     a,c            |     r     add     a,c                   r     add     a,a               |       r     add     a,a             
                mov     r0,a           |           mov     r0,a                        mov     r0,a              |             mov     r0,a            
                mov     @r0,ar7  -----   -----     mov     @r0,ar7                     mov     a,@r0             |             mov     a,@r0           
                ret                    |           ret                                 add     a,r7              |             add     a,r7            
                                       o-> common code for funca and funcb             mov     r7,a              |             mov     r7,a            
                                                                                 r     mov     a,#low darr       |       r     mov     a,#low darr     
                                                                                 r     add     a,c               |       r     add     a,c             
                                                                                       mov     r0,a              |             mov     r0,a            
                                                                                       mov     @r0,ar7           |             mov     @r0,ar7         
                                                                                       ret                       |             ret                     
                                                                                                                 o-> common code for funcc and funcd   
      

      in the example above the functions funcc() and funcd() are removed when the removeunused linker directive is specified. now, the first part of the common code block (function ?l?com0001) is no longer necessary. in previous verions this was still part of the image. with the new linker enhancement even this code block is removed.

      ----- function ?l?com0001 (begin) -----                                                                  
      000021 7408              mov      a,#low darr  ---                                                       
      000023 2519              add      a,b             |\                                                     
      000025 f8                mov      r0,a            | \                                                    
      000026 e6                mov      a,@r0           |  o-> common code for funcc and funcd                 
      000027 ff                mov      r7,a            |                                                      
      000028 7408              mov      a,#low darr  ---                                                       
      00002a         ?l?com0002:                                                                               
      00002a f8                mov      r0,a         ---                                                       
      00002b e6                mov      a,@r0           |\                                                     
      00002c ff                mov      r7,a            | \                                                    
      00002d 7408              mov      a,#low darr     |  o-> common code for funca and funcb                 
      00002f 251a              add      a,c             |                                                      
      000031 f8                mov      r0,a            |                                                      
      000032 a607              mov      @r0,ar7      ---                                                       
      000034 22                ret                                                                             
      ----- function ?l?com0001 (end) -------                                                                  
      
  • [μvision]
    • this c251 release comes with μvision v5.11.2.0.
  • 开发板资料

    arm开发工具

    arm工具手册

    资料下载

    软件例程

    演示视频

    hmi资料

    充电桩资料

    工控板资料

    本类下载top10

    相关文章

    常见问题解答

    网站地图