- 0
- 0
- 约8.48千字
- 约 4页
- 2020-10-30 发布于广东
- 举报
Freescale Semiconductor Document Number: AN4195
Application Note
CodeWarrior Build Tools Options for Optimal
Performance on HC12/HCS12/HCS12X/
HCS12XE Cores
1 Introduction Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 1
This document describes two sets of options in the 2 Optimization for Speed . . . . . . . . . . . . . . . . . 1
CodeWarrior tools to produce optimal code generation 3 Optimization for Code Size . . . . . . . . . . . . . . 2
for the HC12/HCS12/HCS12X/HCS12XE cores. One
set optimizes the speed of the code; another set optimizes
the size of the code.
You can use the build tools options described in this
document for optimal performance, but the build tools
settings must be set in accordance to the application
being developed.
For more information about the S12(X) Compiler, refer
to S12(X) Build Tools Reference Manual by Freescale.
2 Optimization for Speed
In order to reduce the overall cycle count of the code,
pass the following options to the compiler:
-Ot -Cu -Ous -Onf -Oi -OiLib -OnB=al
© 2010 Freescale Semiconductor, Inc. All rights reserved.
Optimization for Code Size
3 Optimization for Code Size
For better code size, pass the following options to the compiler:
-Os -Ous -Of
The following option accepts a list of option sets as input and instructs the compiler to run with each option
set and keep the one that gives best performance for each function:
-Odocf
For example, -OdocF=-Or
NOTE The compilation time multiplies by a factor equal to the number of option
sets passed to the compiler.
For additional hints on code size optimization, refer to the topic Generating Compact Code, of S12(X)
Build Tools Reference Manual by Freescale. You ca
您可能关注的文档
- SIM900_TTS_A分享 文档 参考 学pplication Note_V1.05.pdf
- Processor_Expe分享 文档 参考 学rt_User_Guide.pdf
- PCA82C250_cn分享 文档 参考 学.pdf
- Order-of-CT-stro分享 文档 参考 学ke-protocol-CTA-before-or-after-CTP-Impact-on-image-quality.pdf
- MODBUS_RTU分享 文档 参考 学分享 文档 参考 学_AC500_english.pdf
- kScale Manager 使用说明分享 文档 参考 学.pdf
- HUAWEI TP3106-70&TP3206分享 文档 参考 学-55 V100R002C00 连线示意图.pdf
- hzperfusion-20171103+分享 文档 参考 学.pdf
- HC12InstructionGuide分享 文档 参考 学.pdf
- H3方案原理图分享 文档 参考 学.pdf
最近下载
- 中小企业管理咨询服务合同范本.docx VIP
- 乳腺癌中文精华版NCCN指南(共48张).docx
- GBT 10125_人造气氛腐蚀试验 盐雾试验.pdf VIP
- DB36T-鄱阳湖流域大水面鱼类资源声学分级量化评估技术规程.pdf VIP
- 中医艾灸疗法操作与安全规程(最新修订版).docx VIP
- 二十届四中全会宣讲——国家战略与民族复兴+课件--2025-2026学年高二上学期爱国主义教育主题班会.pptx VIP
- 养生及负氧离子知识总.ppt VIP
- 微生物限度检测室和阳性对照室管理规程.doc VIP
- 给水排水工程顶管技术规程CECS_246:2008.pdf VIP
- 第五版 FMEA 控制程序文件.docx VIP
原创力文档

文档评论(0)