Hi!

When I do angstrom cross compiling on a shared lib and linked with TI dmai lib. 
I found optimization level affects the result. If I set -O0, there is no 
problem, but if -O1 or above, my lib would crash. By debugging, I found when my 
lib calls a function involving sdma in dmai lib, the caller function argument 
pointer is changed after the function returns. Although I specify a constant 
pointer, it is always changed. If I set the function dummy, there is no 
problem. I just wonder how the pointer is affected by either sdma operation or 
the compiler in the case of optimization.

 

Kind Regards


Kaijun Tang
_______________________________________________
Angstrom-distro-users mailing list
Angstrom-distro-users@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-users

Reply via email to