Shlomo--
You cannot control assembly code using compiler options. When you are doing
assembly coding you are literally scheduling the 16 stage C67xx DSP pipeline and
you dont get any code generation tools to help you at assembly.All
that help stops with linear assembly. What you write is what you get with hand
coded assembly.
--Bhooshan
On 11/10/05, shlomo_kashani <s...@yahoo.com> wrote:
Andrew,
Thanks for using -k for me :)
The *Input_Signal++ line is exactly what I am using in linear
assembly as LDW *y_addr++,y_value;.
The point here is to write in assembly or linear assembly to get
familiarized with its usage. I am still interested in compiler
generated optimized code from the linear assembly code (rather then
optimized code based on C code).
I am using these compiler options:
;* Architecture : TMS320C671x
;* Optimization : Enabled at level 3
;* Optimizing for : Speed
;* Based on options: -o3, no -ms
;* Endian : Little
;* Interrupt Thrshld : Disabled
;* Data Access Model : Far Aggregate Data
;* Pipelining : Enabled
;* Speculate Loads : Disabled
;* Memory Aliases : Presume not aliases (optimistic)
;* Debug Info : Optimized w/Profiling Info
But when I look at the generated asm code I see that the compiler
has stripped the linear assembly code and embedded it inside
the main function. Now it is impossible for me to view the pipelined
assembly code for the function (and loop) as I did before (or as you
posted). This is what the compiler generates:
CALL .S1 _my_asm_function ; |24|
|| STW .D2T1 A15,*+SP(8256)
STW .D2T1 A11,*+SP(8220)
STW .D2T1 A10,*+SP(8216)
STW .D1T1 A13,*-A9(28)
|| STW .D2T2 B11,*+SP(8244)
|| MVKL .S1 _Input_Signal,A3 ; |24|
STW .D1T1 A12,*-A9(32)
|| MVKL .S2 RL0,B3 ; |24|
|| STW .D2T2 B12,*+SP(8248)
|| MVKH .S1 _Input_Signal,A3 ; |24|
MVKH .S2 RL0,B3 ; |24|
|| STW .D1T1 A14,*-A9(24)
|| MV .L2X A3,B4 ; |24|
|| STW .D2T2 B13,*+SP(8252)
|| ADD .L1X 12,SP,A4 ; |24|
RL0: ; CALL OCCURS {_my_asm_function} ; |24|
MVK .S1 0x1,A7 ; |35|How can I avoid the stripping? Which compiler option controls
that?
Shlomo.
--
-------------------------------
"I've missed more than 9000 shots in my career.
I've lost almost 300 games. 26 times I've been trusted to take the game winning shot and missed.
I've failed over and over again in my life.
And that is why I succeed."
-- Michael Jordan
--------------------------------