來源:技術(shù)讓夢想更偉大
整理:李肖遙
使用Arm Compiler 6要求
-
MDK版本:5.23及以上版本
-
Keil MDK-Middleware Pack:Version 7.4.0 or higher
-
Keil ARM Compiler Support Pack:Version 1.3.0 or higher
-
ARM CMSIS Pack Version:5.0.1 or higher
AC5與AC6不同之處
-
不顯示警告信息,使用-Wno-參數(shù)。這樣有助于我們將關(guān)注點(diǎn)放在修改錯(cuò)誤上來。關(guān)于詳細(xì)的AC6警告選項(xiàng)請參考:http://clang.llvm.org/docs/DiagnosticsReference.html
-
AC5與AC6不兼容的語言擴(kuò)展
-
AC6開始兼容GNU風(fēng)格的匯編代碼
// Simple GNU syntax example
// Iterate round a loop 10
times, adding 1 to a register each time.
.section .text,
"x"
.balign 4
main: //
MOV w5,
#0x64 // W5 = 100
MOV w4,
#0 // W4 = 0
B test_loop // branch to test_loop
loop:
ADD w5,w5,
#1 // Add 1 to W5
ADD w4,w4,
#1 // Add 1 to W4
test_loop:
CMP w4,
#0xa // if W4 < 10, branch back to loop
BLT loop
.end //
-
AC6增加了對Link時(shí)間的優(yōu)化
AC6對整個(gè)程序進(jìn)行分析將沒有使用到的模塊移除,而以前AC5只能在模塊中檢測。
來源:https://blog.csdn.net/twx11213030422/article
???????????????? END ????????????????
本站聲明: 本文章由作者或相關(guān)機(jī)構(gòu)授權(quán)發(fā)布,目的在于傳遞更多信息,并不代表本站贊同其觀點(diǎn),本站亦不保證或承諾內(nèi)容真實(shí)性等。需要轉(zhuǎn)載請聯(lián)系該專欄作者,如若文章內(nèi)容侵犯您的權(quán)益,請及時(shí)聯(lián)系本站刪除。