Content originally posted in LPCWare by sherrysamuel on Mon Jul 11 19:04:07 MST 2011
Hi Rob
Thx for your quick reply.
[PHP][/CODE]But depending on the compiler and compiler optimizations, pullDest may be one of the variables that is places in the bss segment. So this could mean that pullDest is being reset to 0, resulting in invalid memory access.
That is the reason why this piece of code is written in Assembly and not in C.[/PHP]
But "pullDest" is a local variable and as far I know it will not be allocated in .bss section. It will be allocated in stack as it is local to function.Please correct me if I am wrong. So how will it result in invalid memory access.
Regards,
Sherry