anchao opened a new pull request, #7187:
URL: https://github.com/apache/incubator-nuttx/pull/7187

   ## Summary
   
   arm/armlink: add support of link time optimization(lto)
   
   Optimization goal(Code size)
   
   ```
   Smaller                           GCC(-Os) GCC(-flto -Os) CLANG(-flto -Oz) 
ARMCLANG(-flto -Oz/-Omin)
   lm3s6965-ek/qemu-flat(Cortex-M3)   208662      193893           199525       
      195464
   sabre-6quad/smp(Cortex-A9)         131360      122500            N/A         
      123988
                                                  -7.60%           -4.57%       
      -6.75%
   
   Faster performance                GCC(-O3) GCC(-flto -O3) CLANG(-flto 
-Ofast) ARMCLANG(-flto -Ofast) ARMCLANG(-flto -Omax)
   lm3s6965-ek/qemu-flat(Cortex-M3)   257502      296364           369465       
      346696                  384204
   sabre-6quad/smp(Cortex-A9)         166520      196004             N/A        
      207908                  224140
                                                 +15.00%          +43.40%       
     +34.60%                 +49.20%
   ```
   
   Reference:
   
https://developer.arm.com/documentation/101754/0618/armclang-Reference/armclang-Command-line-Options/-O--armclang-
   
   
   
![img_v2_6a717f29-4d5e-4929-b22b-e820cf903cdl](https://user-images.githubusercontent.com/758493/192204290-984a55b9-1dfd-4ad1-a70c-603ec8600c0b.png)
   
   
   
   Signed-off-by: chao an <anc...@xiaomi.com>
   
   
   ## Impact
   
   N/A
   
   ## Testing
   
   lm3s6965-ek/qemu-flat(Cortex-M3)
   sabre-6quad/smp(Cortex-A9)      
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to