1/1
problem on generated asm code by openrisc compiler
by Unknown on Feb 9, 2004 |
Not available! | ||
Hi all,
I have a question about the generated asm code by openrisc compiler. I have code like that there is some word definition in the routine(shows in the following codes). l.nop # nop delay slot .L164: l.jal _toupper # delay slot filled l.lbs r3,1(r5) # extendqisi2 l.addi r11,r11,-66 l.addi r3,r0,22 # move immediate l.sfgtu r11,r3 l.bf .L144 l.nop # nop delay slot l.slli r3,r11,2 l.movhi r4,hi(.L145) # move immediate (high) l.ori r4,r4,lo(.L145) # move immediate (low) l.add r3,r3,r4 l.lwz r4,0(r3) # SI load l.jr r4 l.nop # nop delay slot .section .rodata .align 4 .align 4 .L145: .word .L108 .word .L113 .word .L144 .word .L114 .word .L119 .text .L108: l.addi r4,r0,1 # move immediate l.movhi r3,hi(_Main_Bitstream_Flag) # move immediate (high) l.ori r3,r3,lo(_Main_Bitstream_Flag) # move immediate (low) l.sw 0(r3),r4 l.addi r4,r0,0 # move immediate And if I rearrange the sequency of instruction for some purposes except the word definition(I will make sure the rearragement of instruction donot affect the result), It will affect the output of the fuction. Or I just put the word difinition to the end of the function(subroutine), I would not do any rearrangement of the instruction. Dose it will afftect the output of the function? Thank you very much. Regards, Stephen |
1/1