keil C251 v5.57 uVision5开发工具

软件大小:38.8 MB 软件性质: 免费软件
更新时间:2015-03-05 11:04:25 应用平台:Win9X/Win2000/WinXP
下载次数:6693 下载来源:米尔科技
软件语言:英文 软件类别: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资料

    充电桩资料

    ARM工具资料

    工控板资料

    本类下载TOP10

    相关文章

    常见问题解答


    新闻中心 | 联系我们 | 招聘信息 | 留言反馈 | 典型客户 | © 2019 Myir
    深圳总部: 0755-25622735 | 北京办事处: 010-84675491 | 上海办事处: 021-60317628 粤ICP备12005064号-1