Upgrading an application from 32 to 64 bit increases the pointer size and the memory footprint of objects.
I am looking for methods to reduce the memory footprint of objects as much as possible. For POD structs I dump the memory layout of the structure to figure out how to pack the members and reduce compiler padding.
Is there a way to figure out the memory layout of non-POD objects such as class instances? How could I achieve something similar to packing of class objects?
Thanks, Dan