This sounds like a little too far fetched, but is there any possibility to find the address of a structure, if the address of one of it's members is known? The struct itself contains different data types, and is 2 bytes aligned. I am working on an embedded target, with DIAB compiler.
Here is the end application. There is an external device with direct R/W access to the RAM memory. If this device modifies a memory location that happens to be within a structure, I need to know which structure was it(or it's starting address) for some processing to be done later.
Update: A direct solution to this problem is difficult. The answer with some relevant discussions regarding the issue has been chosen.