Hi Robert and Farshid,

 

When I did the updates for the 64 bit Windows build I intentionally also added support for generating debugging information in PDB files for the release build.  That was the last bullet in my original email proposing the changes -- see http://openscenegraph.org/archiver/osg-users/2006-July/0794.html -- so don't say I didn't warn you. :)

 

Honestly, I think it's valuable to be generating that information because it can be used to interpret crashes and stack dumps in a released application.  It can also be useful for tracking down that 1 in 100 bug that only occurs in the Release build.

 

The debug information is not supposed to bloat the actual executables, so in theory it shouldn't affect people who don't care about it.  But it looks like I missed adding all the relevant flags to make sure that is true (thanks for tracking those down, Farshid!).  I'd be happy to auto-add those two flags via script into all the project files, but I may not be able to do so until the middle of next week.

 

-Mike

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield
Sent: Friday, August 25, 2006 3:01 PM
To: osg users
Subject: Re: [osg-users] Re: Larger binary file sizes with latest VisualStudioproject

 

Hi Farshid,

There was some automatic processing of the project files recently, assocaited with the Windows64 compile support, my guess the debug setting crept in there.  For normal usage think it best not to include the debug info in a release build.

Generaly the files are hand built though, typically via copy and pasting existing projects.  For resetting the opt options I'd guess we'd need a script to run through all projects and reset them, then submit and merge these on mass.


Robert.

On 8/25/06, Farshid Lashkari <[EMAIL PROTECTED]> wrote:

I did some further investigating and it is possible to bring the file
size down while still generating the debug info. The following linker
options must be set:

/OPT:REF /OPT:ICF

When creating a VisualStudio project from scratch these options are
set by default for release builds. Is it possible to add these options
to all the visual studio projects? Do I need to submit modified
project files or are they automatically generated?

-Farshid
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

 

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to