G
Good Guy
I know a compiler may detect life-time of different variables of a
function and use the same stack frame slot for some different
variables if it detects at beginning of life-time of each one of them
life-time of previous variables has ended; but in case of local
objects of classes in a function may it analyze life-time of members
individually and say like since at this point life-time of this
specific data member is finished let's use this part of stack frame
memory for something else or it just does this for whole object as an
atomic entity, what about objects of unions, would there be such
analysis for those?
function and use the same stack frame slot for some different
variables if it detects at beginning of life-time of each one of them
life-time of previous variables has ended; but in case of local
objects of classes in a function may it analyze life-time of members
individually and say like since at this point life-time of this
specific data member is finished let's use this part of stack frame
memory for something else or it just does this for whole object as an
atomic entity, what about objects of unions, would there be such
analysis for those?