- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a program that i have been running in debug mode. I just changed it to release mode and many of the numbers changed to unrealistic values (this is an iterative solution code, so numbers blow up pretty quickly). I narrowed it down to the inline optimization in the release version. It defaults to "any suitable." This causes the problem. If I change it to "Only INLINE Directive (/Ob1)" then everything is fine.
So while the release version now works, i would still like to understand the differences. There are numerous subroutines and functions in the code, if that is meaningful.
Thanks for any guidance.
So while the release version now works, i would still like to understand the differences. There are numerous subroutines and functions in the code, if that is meaningful.
Thanks for any guidance.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Without seeing the actual program, it's impossible to know. Inline expansion should not change the results of a correct program. Your program may be incorrect, or there may be a compiler bug. Which specific compiler version are you using?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Understandable that it is difficult to diagnose without the code. I am using 11.1.051.
Is there a way that i can designate which functions are treated in a specific inlining way? That wasy i may be able to narrow it down to the problem child. Alternatively, i can send you the source code and sln file...
Thanks for the help, Steve -- i'm beginning to think you live online!
Is there a way that i can designate which functions are treated in a specific inlining way? That wasy i may be able to narrow it down to the problem child. Alternatively, i can send you the source code and sln file...
Thanks for the help, Steve -- i'm beginning to think you live online!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please try 11.1.065 and see if the problem remains. I am aware of an inlining bug fixed in that version.

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