AN4195_Optimal_Build_Tools_Sett分享 文档 参考 学ings_S12X.pdfVIP

  • 0
  • 0
  • 约8.48千字
  • 约 4页
  • 2020-10-30 发布于广东
  • 举报

AN4195_Optimal_Build_Tools_Sett分享 文档 参考 学ings_S12X.pdf

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

文档评论(0)

1亿VIP精品文档

相关文档