Click here to Skip to main content
15,892,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Property Sheets and Pages Pin
Michael Dunn20-May-06 13:05
sitebuilderMichael Dunn20-May-06 13:05 
GeneralRe: Property Sheets and Pages Pin
si_6920-May-06 13:09
si_6920-May-06 13:09 
GeneralRe: Property Sheets and Pages Pin
Michael Dunn20-May-06 14:16
sitebuilderMichael Dunn20-May-06 14:16 
QuestionColor Scheme Pin
RockyJames19-May-06 21:15
RockyJames19-May-06 21:15 
AnswerRe: Color Scheme Pin
Nibu babu thomas19-May-06 21:37
Nibu babu thomas19-May-06 21:37 
AnswerRe: Color Scheme Pin
Laxman Auti19-May-06 23:09
Laxman Auti19-May-06 23:09 
GeneralRe: Color Scheme Pin
RockyJames20-May-06 0:14
RockyJames20-May-06 0:14 
QuestionRelease Code Optimization Problems.. Pin
rbid19-May-06 20:45
rbid19-May-06 20:45 
Hello,

SCENARIO:

  • I have some "C" code that runs heavy math, that takes time to get the results.
  • Compiling under a Debug configuration, all goes as required.. but the run sessing is to slow (few hours to get the results.)
  • Compiling under a Release configuration, fails to get the required results.
    (Release configuration with its default Speed code optimization (/O2 flag))
  • When I turn off speed optimizations under Release configurations, the results are O.K, but again, it runs slower than expected.

QUESTIONS

  1. How can I detect what does causes this differences on the code?
  2. How can I debug this code and catch the affecting lines?


I guess that this has to do in the way this "C" code is written, that optimizing it for speed causes the differences. All this code runs under the same thread, and uses data that is static.

Any hint?Sigh | :sigh: Confused | :confused:

Thanks in Advance.



-- Ricky Marek (AKA: rbid)
-- "Things are only impossible until they are not" --- Jean-Luc Picard

My articles
AnswerRe: Release Code Optimization Problems.. Pin
Laxman Auti19-May-06 20:59
Laxman Auti19-May-06 20:59 
GeneralRe: Release Code Optimization Problems.. Pin
rbid19-May-06 21:14
rbid19-May-06 21:14 
AnswerRe: Release Code Optimization Problems.. Pin
Saurabh.Garg19-May-06 22:32
Saurabh.Garg19-May-06 22:32 
GeneralRe: Release Code Optimization Problems.. Pin
rbid20-May-06 4:56
rbid20-May-06 4:56 
GeneralRe: Release Code Optimization Problems.. Pin
Saurabh.Garg20-May-06 16:21
Saurabh.Garg20-May-06 16:21 
GeneralRe: Release Code Optimization Problems.. Pin
rbid20-May-06 21:57
rbid20-May-06 21:57 
GeneralRe: Release Code Optimization Problems.. Pin
Saurabh.Garg21-May-06 16:36
Saurabh.Garg21-May-06 16:36 
GeneralRe: Release Code Optimization Problems.. Pin
rbid22-May-06 8:23
rbid22-May-06 8:23 
AnswerRe: Release Code Optimization Problems.. Pin
Ryan Binns20-May-06 1:53
Ryan Binns20-May-06 1:53 
GeneralRe: Release Code Optimization Problems.. Pin
rbid20-May-06 5:04
rbid20-May-06 5:04 
GeneralRe: Release Code Optimization Problems.. Pin
Ryan Binns20-May-06 14:38
Ryan Binns20-May-06 14:38 
GeneralRe: Release Code Optimization Problems.. Pin
rbid22-May-06 8:28
rbid22-May-06 8:28 
AnswerRe: Release Code Optimization Problems.. Pin
Ray Hagstrom20-May-06 8:46
Ray Hagstrom20-May-06 8:46 
GeneralRe: Release Code Optimization Problems.. Pin
rbid20-May-06 10:17
rbid20-May-06 10:17 
AnswerSummary... Pin
rbid24-May-06 8:19
rbid24-May-06 8:19 
QuestionString Conversion Pin
satsumatable19-May-06 19:50
satsumatable19-May-06 19:50 
AnswerRe: String Conversion [modifed] Pin
Nibu babu thomas19-May-06 20:04
Nibu babu thomas19-May-06 20:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.