AN298 – Migrate ARM Compiler 5 to ARM Compiler 6 Copyright © 2017 ARM Ltd. All rights reserved
feedback@keil.com www.keil.com/appnotes/docs/apnt_298.asp
Migrate ARM Compiler 5 to ARM Compiler 6
MDK Tutorial
AN298, March 2017, V 1.0 feedback@keil.com
Abstract
ARM编译器6是用于ARMarchitecture的编译工具链,可在MDK Version 5中使用。
ARM Compiler 6将现代LLVM编译器基础设施和高度优化的ARM Clibraries结合在一起,为ARM架构
提供性能和功率优化的嵌入式软件。高效的代码生成、更好的诊断和更快的特性开发。
由于ARM编译器6是基于一个新的技术,它只是部分兼容之前的ARM编译器版本(5之前)。这个应用
程序说明指导移植你的应用程序源代码,编译器设置,并充分利用新的编译器优化和诊断设施。
Contents
Abstract
1......................................................................................................................................................................
Introduction
1................................................................................................................................................................
Prerequisites
...............................................................................................................................................................2
Switch the Compiler in µVision IDE
.........................................................................................................................2
Diagnostic Settings: Warnings and Errors..................................................................................................................3
Incompatible Language Extensions............................................................................................................................4
Select a Compiler Optimization Level
.......................................................................................................................5
Link Time Optimization
.............................................................................................................................................6
Object
and Library Compatibility
..............................................................................................................................7
Data Packing...............................................................................................................................................................7
Linker: Scatter-Loading Descriptions
........................................................................................................................8
Assembler Migration
..................................................................................................................................................9
Other Implementation Specific Differences
.............................................................................................................11
Conclusion
12................................................................................................................................................................
Introduction
ARM编译器6.6有很多优点。一些亮点:
1.最佳代码大小ARMv7-M (Cortex-M3 Cortex-M7)
2.完整支持ARMv8-M (Cortex-M23和Cortex-M33)
3.最新c++标准支持(C + + 14)
4.GCC兼容性
Next ARM Compiler 6版本(2017年5月推出)还提供:
1.改进代码大小ARMv6M (Cortex-M0 / M0 +)
2.功能安全认证方案