This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

POINTER type cast probelm due to alignment

HI
Iam having problem when pointer to the location is not on a 4 byte boundary (divisible by 4). when i call the function and pass arguments, i see that inside the called function, it points to an aligned memory location which is probably pointing to second or third byte.(I was expecting it to point to the first byte).

Since i have to type pointer to structure and pass it on as argument to a function, using __packed is also not useful.

Is there a work around?

-vivek

0