<div dir="ltr">Hi all,<div><br></div><div>I am interested in tracking precisely locations of local variables / function parameters in the binary (whether the variable is on the stack, in a register, or maybe both). I know that this is part of the debug information, which can be potentially dropped by optimization passes. Is there any way to verify after each pass the location of the variable?</div><div><br></div><div>I mean, right before any optimization, we can find the local variable i on the stack, and after -mem2reg, maybe the variable is now in an SSA register %i, then after Register Allocation, %I is mapped into the physical register r1 on ARM, for example. I think about implementing a pass that will be inserted after each optimization pass to verify that the variable is still there and get its location, but not sure how to do this precisely. I would appreciate any help/advice/pointer on how to tackle this.</div><div><br></div><div>Thank you for your time</div><div><br clear="all"><div><div class="m_146156935213860335m_1083981881077586273gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Son Tuan Vu</div></div></div>
</div></div>