#19529 - alek - Wed Apr 21, 2004 3:05 pm
I have the sqrt rotine written by KevinW. I've changed it so I can assemble it in GAS. My question is when I write .section iwram is the code put in iwram and if that's the case why doesn't it go faster on hardware.
here is how I have written it.
If I remove .code 32 and .section .iwram the program doesn't execute slower on hardware. This function is called a lot so why is this.
Second qustion
This code is in the same sqrt function. I get the folloiwng errors when I compile my project if I don't remove it
isqr.s:101: Error: bad instruction `use_rounding'
isqr.s:104: Error: bad instruction `endif'
What should I do?
Thankfull for any response,
here is how I have written it.
Code: |
.code 32 .section .iwram .align .Global isqr @ Entry isqr: the function... |
If I remove .code 32 and .section .iwram the program doesn't execute slower on hardware. This function is called a lot so why is this.
Second qustion
Code: |
@ Rounding IF :DEF:USE_ROUNDING CMP r0,r2 ADC r2,r2,#1 ENDIF |
This code is in the same sqrt function. I get the folloiwng errors when I compile my project if I don't remove it
isqr.s:101: Error: bad instruction `use_rounding'
isqr.s:104: Error: bad instruction `endif'
What should I do?
Thankfull for any response,