參數(shù)資料
型號: DEBUG186
英文描述: Debugging an Am186EM Application on the SD186EM Demonstration Board Using Microsoft's C/C++ Compiler and Paradigm Debug Software
中文描述: 調(diào)試的SD186EM演示板使用微軟的C / C編譯器和調(diào)試軟件范式的Am186EM應(yīng)用
文件頁數(shù): 13/15頁
文件大?。?/td> 80K
代理商: DEBUG186
9/11/95
Page 13
OPTIMIZING THE APPLICATION PROGRAM
Do not try to optimize an application program when it is in the debugging process, because
optimization may move instructions around, and thus make it harder to debug. When the program is
fully functional, optimization may be applied to improve the speed of the program and reduce the size
of the code; these are two important factors in designing an embedded application. Certain
optimization options are turned on by default (/Oc, /Of, /Oo, /Ot, /Ov). This section attempts to
explain briefly other optimizations users might want to try to produce faster and smaller code. Please
review the Microsoft C/C++ Environment and Tools manual for a complete listing.
/G1
Processor specific
instructions
Use this option to produce 80186 instructions
/Gr
Register calling
convention
This option instructs the compiler to pass arguments between functions using
registers as much as possible. Thus it increases the speed. WARNING:
Using this option with inline assembly language may cause conflicts in the
use of registers.
/Gs
Turn stack checking OFF
Use this option to eliminate the stack-probe routine being called at every
function entry point, thus it enables the compiler to produce faster code.
/Gy
eliminate dead-code at
link time
This option eliminates unintended functions at link time, thus it enables the
linker to produce smaller code.
/Ob[0,1,2]
Control inline expansion
Inline expansion produces faster code because the overhead associated with
function calls is eliminated, but it will increase the size of the code.
/Ob0: Disable inline expansion (default with /Od)
/Ob1: Only expand functions marked as inline or __inline
/Ob2: Expand functions marked as inline or __inline and any
other functions the compiler chooses
/Oe
global register allocation
This option allows the compiler to store frequently used variables and
expressions in registers, thus increases the speed and decreases the size of
the code. This option should always be turned ON.
/Og
Global-level common
subexpression
optimization
When the same expression is repeated within a function, and the value has
not changed, the compiler calculates the expression and stores it in a
temporarily variable. Thus this option decreases the size, and increases the
speed. This option should always be turned ON.
/Oi
Generate intrinsic
functions
This option instructs the compiler to replace the common string or memory
functions such as memcpy, strcpy, etc. with their inline code. As with inline
option /Obn, intrinsic functions are faster, but they may be larger due to
additional code generated.
/Ol
Enable loop optimization
This option removes invariant code within a loop. Any expression whose
value is constant inside the loop will be moved outside when this option is
turned ON. Thus it increases the speed of the program execution.
/Os
Minimize executable file
size
This option minimizes the size of the object file. Though it produces smaller
code, it may also slow the code.
/Ox
Maximize optimization
This option is a short way to combine optimizing options to produce the
fastest possible code. It is the combination of the following options:
/Oblcegilnot /Gs.
/Oz
Turn on potential unsafe
loop optimization
This option works like /Ol, only it is much more aggressive. WARNING:
Use of this option may generate unwanted “features”.
BUILDING AN AM186EM STANDALONE PROGRAM
相關(guān)PDF資料
PDF描述
DEBUGGING Debugging an Am186EM Application on the SD186EM Demonstration Board Using Microsoft's C/C++ Compiler and Paradigm Debug Software Application Note? 80.0KB (PDF)
DECIMATE DECIMATE⑩
DEIC420 20 Ampere Low-Side Ultrafast RF MOSFET Driver
DELAY EM56/57 - Speech & Music Synthesizer - Application Note - Application Note
DEM-ACF2101BP DEM-ACF2101BP - DISCONTINUED PRODUCT. No longer recommended for new design.
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
DEBUGADPTER-USB 功能描述:插座和適配器 USB Debug Adapter FOR C8051Fxxx MCU RoHS:否 制造商:Silicon Labs 產(chǎn)品:Adapter 用于:EM35x
DEBUGADPTR1-USB 功能描述:插座和適配器 USB Debug Adapter FORC8051FXXXMCU RoHS:否 制造商:Silicon Labs 產(chǎn)品:Adapter 用于:EM35x
DEBUGGING 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Debugging an Am186EM Application on the SD186EM Demonstration Board Using Microsoft's C/C++ Compiler and Paradigm Debug Software Application Note? 80.0KB (PDF)
DEBURRER-RS 制造商:Spear & Jackson 功能描述:PIPE DEBURRER 3-32MM
DEC09ST 制造商:ITW Switches 功能描述: