Jump to content
  • Advertisement
Sign in to follow this  
Idov

PDB files and compilation options

This topic is 2613 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi!
I'd like to know which flags were used when an executable was buillt.
for example, if it was built with /Oy - it means the frame pointer optimization was enabled. /ZI provides "edit & continue".
How can I find it?
Is this information even in the PDBs?
thanks :)

Share this post


Link to post
Share on other sites
Advertisement
As far as I know this information is not stored anywhere, because it is possible to build a PDB which makes debuggers barf (they can't tell it's from a different compilation of the same basic binary).

Consider that every compiler (and most versions of the same compiler line) will have different options, but anyone is free to generate a PDB.

Share this post


Link to post
Share on other sites
/Oy and /ZI should be fairly obvious from reading the disassembly. Compile some code with each option and examine the result and you'll see the differences (e.g. for /Oy look how the ebp and esp registers are used).

Also note that /Oy tends to confuse debuggers about what the call stack is when they don't have access to the .pdb file.

Other flags will not be so easy to check for by inspection of the code though.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!