SDKZSPF LSI, SDKZSPF Datasheet - Page 86

no-image

SDKZSPF

Manufacturer Part Number
SDKZSPF
Description
Manufacturer
LSI
Datasheet

Specifications of SDKZSPF

Lead Free Status / Rohs Status
Supplier Unconfirmed
3.12 Debugging Options
3-32
This is transformed by the assembly optimizer to:
.set
<function name>:
__FUNC_START_<function name>:
<optimized function body with prologue/epilogue>
__FUNC_END_<function name>:
ret
Use the option “-asm_pe_only” if only prologue/epilogue generation is
desired.
or
All registers that must be preserved according to the C calling convention
are preserved. Note that the name REGSAVE_SIZE_<function name>
can be used if the size of the stack space used by the prologue/epilogue
is needed. Any input in the assembly file outside of the !PROLOGUE and
!EPILOGUE markers is copied without modification.
You can debug code compiled using the gcc-supplied -g option, which
generates debugging information. Optimization levels -O0 and -O1 are
fully compatible with debugging. At level -O0 no optimization is done --
at level -O1 only optimizations that preserve debugging capability are
performed. At level -O2 debugging should only be done with the -
mno_sdopt option because the assembly optimizers do not preserve the
location of debugging information. Debugging at level -O2 can be
confusing, since instructions may be re-ordered, dead-code may be
eliminated, etc. However, in most cases the structure of the control-flow
graph is preserved, so it is usually possible to use breakpoints to stop at
a particular location in a program.
Using the -g option with optimization modifies the code generated in two
ways. First, the debugging version of the C library is linked, rather than
the optimized version. Second, leaf functions save and restore %rpc
(without the -g option, this save and restore is removed by optimization).
C Cross Compiler
Copyright © 1999-2003 by LSI Logic Corporation. All rights reserved.
sdopt -asm_pe_only assemblyfile
zdopt -asm_pe_only assemblyfile
REGSAVE_SIZE_<function name>, <stack space used>