没有合适的资源?快使用搜索试试~ 我知道了~
ARM® Compiler 6 is the compilation toolchain for the ARM architecture, available in MDK Version 5. ARM Compiler 6 brings together the modern LLVM compiler infrastructure and the highly optimized ARM C libraries to produce performance and power optimized embedded software for the ARM architecture. Efficient code generation, better diagnostics, and faster feature development. Since ARM Compiler 6 is based on a new technology it is only partially compatible with previous ARM Compiler Versions (5 and before). This application note guides to port your application source code, compiler settings and make best use of new compiler optimizations and diagnosis facilities.
资源推荐
资源详情
资源评论
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
1
Migrate ARM Compiler 5 to ARM Compiler 6
MDK Tutorial
AN298, March 2017, V 1.0 feedback@keil.com
Abstract
ARM
®
Compiler 6 is the compilation toolchain for the ARM architecture, available in MDK Version 5.
ARM Compiler 6 brings together the modern LLVM compiler infrastructure and the highly optimized ARM C
libraries to produce performance and power optimized embedded software for the ARM architecture. Efficient
code generation, better diagnostics, and faster feature development.
Since ARM Compiler 6 is based on a new technology it is only partially compatible with previous ARM
Compiler Versions (5 and before). This application note guides to port your application source code, compiler
settings and make best use of new compiler optimizations and diagnosis facilities.
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
®
Compiler 6.6 has many advantages. Some highlights are:
Best-In-Class code size for ARMv7-M (Cortex-M3 to Cortex-M7)
Complete support for ARMv8-M (Cortex-M23 and Cortex-M33)
Latest C++ standards supported (C++14)
GCC Compatibility
Next ARM Compiler 6 version (introduced in May 2017) additionally offers:
Improved Code-Size for ARMv6M (Cortex-M0 / M0+)
Functional Safety Certification Package
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
2
Prerequisites
To use ARM Compiler 6 it is recommended to use the following MDK version at least:
MDK version 5.23 or higher with ARM Compiler 6.6
MDK 5.23 is shipped with ARM Compiler 5.06 and ARM Compiler 6.6. Both are installed alongside on your
hard disk.
The following software packs are the minimum versions supporting ARM Compiler 6:
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
The above versions will already be installed with MDK version 5.23 by default.
For Device Family Packs (DFP) please contact the vendor of the pack for information which versions are
compatible with ARM Compiler 6.
Switch the Compiler in µVision IDE
µVision provides a convenient interface to control all versions of ARM C/C++ Compilers.
Select Compiler Version in Options for Target
Before you begin it is recommended that you create a backup copy of your project.
1. Open your project in uVision.
2. Choose Project – Options for Target from the menu.
On the Target tab you will find the setting for the used compiler version.
3. Set the ARM Compiler to Version 6.6 (or any newer version that your MDK release includes)
4. Confirm the dialog by pressing OK.
Before this step you cannot make changes to compiler options.
Because there is no equivalent for most ARM Compiler 5 settings all compiler settings will be set to default.
This document will discuss all relevant settings to help to identify the correct alternatives.
剩余11页未读,继续阅读
资源评论
shakan2786
- 粉丝: 0
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功