How to get the address of the C function parameter with WMMX

How to get the address of the C function parameter with WMMX

I use Intel CC++ compiler 1.2 in WinCE 4.
The sample code is:
void doit(short * pSrc, char * pDest, int nWidth)
{
_asm{
mov r6, r0;
wldrdwr0, [r1];
wldrdwr1, [r6];
.
.
.
}
}
I use register r0,r1,r2 to replace the parameter source, dest, width.
The up code is ok when the optimization option is default/disabled.
But it causes error when the optimization option is maximize speed / minimize size.
Can you please recommend theright way to get the address of these parameters?Thanks in advance.

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.