![](https://csdnimg.cn/release/download_crawler_static/5906239/bg1.jpg)
Copyright © 2009 ARM Ltd. All rights reserved
MDK Compiler Optimizations. www.keil.com
August 2009 Revision 1.0
Application Note: 202
MDK-ARM Compiler Optimizations
Getting the Best Optimized Code for your Embedded Application
Abstract
This document examines the ARM Compilation Tools, as used inside the Keil MDK-ARM (Microcontroller
Development Kit), and how to use them to optimize your code for best performance or smallest code-size.
Contents
ARM Compilation Tools ......................................................................................................................................................... 2
Compiler Options for Embedded Applications ........................................................................................................................ 2
Optimizing for Smallest Code Size .......................................................................................................................................... 5
Compile the Measure example without any optimizations .................................................................................................. 5
Optimize the Measure example for Size .............................................................................................................................. 6
Optimizing for Best Performance ............................................................................................................................................ 7
Run the Dhrystone benchmark without any optimizations .................................................................................................. 7
Optimize the Dhrystone example for Performance .............................................................................................................. 8
Summary .................................................................................................................................................................................. 9
Revision History
• August 2009: Initial Version
Information in this file, the accompany manuals, and software is
Copyright (c) ARM. All rights reserved.