I just ran into this behavior during debugging and was wondering if anybody else ran into similar issues or would know when this occurs:
I am using _alloca to allocate temporary arrays. The code works fine in VS.net and in eVC 4 when running in the emulator. When I execute on the ARM device though, addressing of local variables seems to be corrupted (I am stepping through the assembly code and indeed, it's loading from the wrong location).
Obviously malloc/free is a work-around, but _alloca would definitively be the preferred solution for performance reasons.
So, anybody seen this before? Is there a known pattern what kind of code triggers this? What I noticed is that the code generated for _alloca does not enforce proper alignment, but that seems to be unrelated to the problem I am seeing.
Thanks,
HM
I am using _alloca to allocate temporary arrays. The code works fine in VS.net and in eVC 4 when running in the emulator. When I execute on the ARM device though, addressing of local variables seems to be corrupted (I am stepping through the assembly code and indeed, it's loading from the wrong location).
Obviously malloc/free is a work-around, but _alloca would definitively be the preferred solution for performance reasons.
So, anybody seen this before? Is there a known pattern what kind of code triggers this? What I noticed is that the code generated for _alloca does not enforce proper alignment, but that seems to be unrelated to the problem I am seeing.
Thanks,
HM