Click here to Skip to main content
15,887,420 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Repaint Problem Pin
peterchen23-Feb-06 10:35
peterchen23-Feb-06 10:35 
QuestionCode-Generation options Pin
Themis23-Feb-06 5:37
Themis23-Feb-06 5:37 
AnswerRe: Code-Generation options Pin
peterchen23-Feb-06 6:36
peterchen23-Feb-06 6:36 
GeneralRe: Code-Generation options Pin
Mike Dimmick23-Feb-06 7:41
Mike Dimmick23-Feb-06 7:41 
Questionc vs. visual c++ Pin
pplshero5423-Feb-06 5:34
pplshero5423-Feb-06 5:34 
AnswerRe: c vs. visual c++ Pin
toxcct23-Feb-06 5:57
toxcct23-Feb-06 5:57 
AnswerRe: c vs. visual c++ Pin
David Crow23-Feb-06 5:58
David Crow23-Feb-06 5:58 
AnswerRe: c vs. visual c++ Pin
James R. Twine23-Feb-06 6:37
James R. Twine23-Feb-06 6:37 
   This was somewhat true in the early days of C++, when it was basically implemented as a preprocessor that turned C++ code into (sometimes not very good) C code and fed it to a C compiler/linker.

   These days, C++ compilers do C++ natively, and have extensive optimization algorithms designed to squeeze the very best out of the code, some optimizations being specific to C++ like (N)RVO.

   I would guess a decent C++ compiler can create optimized code that is on par with a decent C compiler.  Of course, it all depends on what the code is doing.  I would not expect much difference if you took some real-world C code, compiled and optimized it with a straight C compiler and did the same with a C++ compiler suite.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
AnswerRe: c vs. visual c++ Pin
Chris Losinger23-Feb-06 8:35
professionalChris Losinger23-Feb-06 8:35 
AnswerRe: c vs. visual c++ Pin
Joe Woodbury23-Feb-06 8:59
professionalJoe Woodbury23-Feb-06 8:59 
AnswerRe: c vs. visual c++ Pin
jhwurmbach23-Feb-06 22:06
jhwurmbach23-Feb-06 22:06 
GeneralRe: c vs. visual c++ Pin
pplshero5424-Feb-06 3:23
pplshero5424-Feb-06 3:23 
GeneralRe: c vs. visual c++ Pin
jhwurmbach24-Feb-06 3:31
jhwurmbach24-Feb-06 3:31 
QuestionLazy question - EnsureMyWindowIsVisible function Pin
Iain Clarke, Warrior Programmer23-Feb-06 5:30
Iain Clarke, Warrior Programmer23-Feb-06 5:30 
AnswerRe: Lazy question - EnsureMyWindowIsVisible function Pin
James R. Twine23-Feb-06 5:36
James R. Twine23-Feb-06 5:36 
GeneralRe: Lazy question - EnsureMyWindowIsVisible function Pin
Iain Clarke, Warrior Programmer23-Feb-06 8:41
Iain Clarke, Warrior Programmer23-Feb-06 8:41 
AnswerRe: Lazy question - EnsureMyWindowIsVisible function Pin
peterchen23-Feb-06 6:44
peterchen23-Feb-06 6:44 
GeneralRe: Lazy question - EnsureMyWindowIsVisible function Pin
Iain Clarke, Warrior Programmer23-Feb-06 8:25
Iain Clarke, Warrior Programmer23-Feb-06 8:25 
GeneralRe: Lazy question - EnsureMyWindowIsVisible function Pin
Ryan Binns23-Feb-06 14:59
Ryan Binns23-Feb-06 14:59 
GeneralRe: Lazy question - EnsureMyWindowIsVisible function Pin
Iain Clarke, Warrior Programmer23-Feb-06 21:32
Iain Clarke, Warrior Programmer23-Feb-06 21:32 
GeneralRe: Lazy question - EnsureMyWindowIsVisible function Pin
Ryan Binns23-Feb-06 21:34
Ryan Binns23-Feb-06 21:34 
GeneralRe: Lazy question - EnsureMyWindowIsVisible function Pin
Blake Miller24-Feb-06 6:07
Blake Miller24-Feb-06 6:07 
GeneralRe: Lazy question - EnsureMyWindowIsVisible function Pin
Ryan Binns24-Feb-06 12:31
Ryan Binns24-Feb-06 12:31 
QuestionHow an exe should automatically be deleted after completing its execution? Pin
G Haranadh23-Feb-06 5:20
G Haranadh23-Feb-06 5:20 
AnswerRe: How an exe should automatically be deleted after completing its execution? Pin
toxcct23-Feb-06 5:26
toxcct23-Feb-06 5:26 

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.