Click here to Skip to main content
15,662,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: question on static creating multi-views Pin
King Tran19-Sep-07 3:43
King Tran19-Sep-07 3:43 
QuestionAdding Libraries Pin
pds847518-Sep-07 3:51
pds847518-Sep-07 3:51 
AnswerRe: Adding Libraries Pin
baerten18-Sep-07 4:16
baerten18-Sep-07 4:16 
QuestionJava vs. C++ Pin
LCI18-Sep-07 3:23
LCI18-Sep-07 3:23 
AnswerRe: Java vs. C++ Pin
David Crow18-Sep-07 4:05
David Crow18-Sep-07 4:05 
GeneralRe: Java vs. C++ Pin
LCI18-Sep-07 4:09
LCI18-Sep-07 4:09 
GeneralRe: Java vs. C++ Pin
David Crow18-Sep-07 4:23
David Crow18-Sep-07 4:23 
GeneralRe: Java vs. C++ Pin
bob1697218-Sep-07 6:50
bob1697218-Sep-07 6:50 
For one, how can you verify that the loops were fully processed without some output of the value in the end?

You need to modify a value on each iteration, and use the final value in some output in both systems to prevent optimizations in Java from throwing the whole loop away and not even processing it. You may be the victim of a false positive since it may not have processed things as you think in both environments. You need to understand what happens in optimized and debug modes to properly set up your benchmarks and to fully appreciate and digest the results of your tests.

You can inadvertantly benchmark using debug mode so make sure, if you haven't already, to only benchmark in releasemode.


AnswerRe: Java vs. C++ Pin
Russell'18-Sep-07 4:14
Russell'18-Sep-07 4:14 
GeneralRe: Java vs. C++ Pin
Mike Dimmick18-Sep-07 4:20
Mike Dimmick18-Sep-07 4:20 
GeneralRe: Java vs. C++ Pin
Russell'18-Sep-07 4:31
Russell'18-Sep-07 4:31 
GeneralRe: Java vs. C++ Pin
LCI18-Sep-07 8:47
LCI18-Sep-07 8:47 
GeneralRe: Java vs. C++ Pin
Mike Dimmick18-Sep-07 9:55
Mike Dimmick18-Sep-07 9:55 
GeneralRe: Java vs. C++ Pin
jhwurmbach18-Sep-07 4:53
jhwurmbach18-Sep-07 4:53 
GeneralRe: Java vs. C++ Pin
Russell'18-Sep-07 5:11
Russell'18-Sep-07 5:11 
GeneralRe: Java vs. C++ Pin
jhwurmbach18-Sep-07 5:25
jhwurmbach18-Sep-07 5:25 
GeneralRe: Java vs. C++ Pin
Russell'18-Sep-07 5:44
Russell'18-Sep-07 5:44 
GeneralRe: Java vs. C++ Pin
El Corazon18-Sep-07 8:22
El Corazon18-Sep-07 8:22 
GeneralRe: Java vs. C++ Pin
jhwurmbach18-Sep-07 8:31
jhwurmbach18-Sep-07 8:31 
GeneralRe: Java vs. C++ Pin
El Corazon18-Sep-07 9:01
El Corazon18-Sep-07 9:01 
AnswerRe: Java vs. C++ Pin
Mike Dimmick18-Sep-07 4:19
Mike Dimmick18-Sep-07 4:19 
AnswerRe: Java vs. C++ Pin
Nemanja Trifunovic18-Sep-07 4:46
Nemanja Trifunovic18-Sep-07 4:46 
AnswerRe: Java vs. C++ Pin
El Corazon18-Sep-07 5:00
El Corazon18-Sep-07 5:00 
AnswerRe: Java vs. C++ Pin
bob1697218-Sep-07 6:39
bob1697218-Sep-07 6:39 
GeneralRe: Java vs. C++ Pin
jhwurmbach18-Sep-07 8:33
jhwurmbach18-Sep-07 8:33 

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.