![Texas Instruments TMS320C2x User Manual Download Page 57](http://html1.mh-extra.com/html/texas-instruments/tms320c2x/tms320c2x_user-manual_1097073057.webp)
Using the Interlist Utility
2-35
C Compiler Description
Example 2
−
2. An Interlisted Assembly Language File
;>>>>
main()
;>>>>
int i, j;
*******************************************
* FUNCTION DEF : _main
*******************************************
_main:
SAR
AR0,*+
SAR
AR1,*
LARK
AR0,3
LAR
AR0,*0+,AR2
;>>>>
i += j;
LARK
AR2,1
MAR
*0+
LAC
*−
ADD
*
SACL
*+
;>>>>
j = i + 123;
ADDK
123
SACL
*,AR1
EPI0_1:
SBRK
4
LAR
AR0,*
RET
.end
For information on how to invoke the interlist utility, outside of dspcl, refer to
section 2.9.5,
Invoking the Interlist Utility
Note: Using the
−
s Option With the Optimizer
Optimization makes normal source interlisting impractical because the opti-
mizer extensively rearranges your program. When you use the
−
s option, the
optimizer writes reconstructed C statements. The comments also include a
list of the allocated register variables. Occasionally the optimizer interlist
comments may be misleading because of copy propagation or assignment
of multiple or equivalent variables to the same register.
Summary of Contents for TMS320C2x
Page 8: ...viii...
Page 69: ...2 47 C Compiler Description...
Page 159: ...6 36...
Page 226: ...8 6...