- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am just trying to understand what the implication of compiling production codes with "-g -O3" would be.
Other than binary size being larger what is the downside of including the debug symbols on fortran binaries? Is there a performance penalty? If so roughly around 2%, 5%.?
I understand that debugging code with "-g -O3" is probably a bit difficult for a debugger as the code will probably get moved around by the compiler. I am not trying to debug codes that I know I have a bug on or that are reproducible with this.
I am only trying to this for cases when I have production codes that are running well but for some corner case the code hangs so I would like to attach to it and get some useful information from a debugger. Some of these are not reproducible or they take to long to get to that point so being able to just attach and get some hint would be useful.
Thanks
Rene
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There's not really a performance penalty, other than larger executable size.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page