hello,
I have a function with arguments of Word16 type. But in order to load Word32 type i have changed the function and i get the following misaligned load error.
hello,
I have a function with arguments of Word16 type. But in order to load Word32 type i have changed the function and i get the following misaligned load error.
Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.
Have you analysed your code to identify where the misaligned load may be coming from?
Have you tried using the remote debugger to step through your code to help identify where the issue is coming from?
Thanks,
Jack
hi,
Yes I have analysed. The intermediate operations causes the misalignment. Since the intermediate operations cannot be changed. I have no other option other than to proceed with the Word16 type.
Thanks,
phalgun
Could you post the code snippet of the function and the instruction where you are seeing the exception happening?
Thanks
Sathish
sorry for the late reply the problem is when i run normally i get the error but when i am trying to debug. the problem is not there.
regards,
phalgun
How are you trying to debug? If via FARF, could it be someting with how you call FARF?
Were you planning to post a code snippet?
the function is as follows
func(int a[],int *b,int c, int d)
{
int e= a[-c];d=-d;
if(d<0)
{
d=d+4;
e--
}
b=b+(3-d);
............................
.............................
}
the base pointer address chnges. i have written this in assembly. so when i use -g3 flag it works. if i donot use -g3 and run it normally it says there is some misaligned load.
Hi Phalgun,
You had mentioned that the arguments is of word16 type but dont see any arguments of this type in the pasted code.If it's possible to provide the actual snippet of assembly code where you are experiencing the problem, that would be helpful.
Thanks
Sathish
hi all,
i am using SDK 3.0 for optimizing DTMF detection. i have written goertzel algorithm using assembly. when the optimization level is -O0 it runs fine. but when i changes to -O3 it shows misaligned load at 0xdd.
regards,
ajay