Click here to Skip to main content
15,912,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how can i do this with C++ Pin
Rajesh R Subramanian1-May-08 18:49
professionalRajesh R Subramanian1-May-08 18:49 
GeneralRe: how can i do this with C++ Pin
JudyL_MD2-May-08 2:12
JudyL_MD2-May-08 2:12 
GeneralRe: how can i do this with C++ Pin
Rajesh R Subramanian1-May-08 19:19
professionalRajesh R Subramanian1-May-08 19:19 
QuestionRe: how can i do this with C++ Pin
Rajkumar R1-May-08 19:28
Rajkumar R1-May-08 19:28 
GeneralRe: how can i do this with C++ Pin
Rajesh R Subramanian1-May-08 19:29
professionalRajesh R Subramanian1-May-08 19:29 
GeneralRe: how can i do this with C++ [modified] Pin
Rajkumar R1-May-08 19:24
Rajkumar R1-May-08 19:24 
GeneralRe: how can i do this with C++ Pin
Randor 2-May-08 5:36
professional Randor 2-May-08 5:36 
GeneralRe: how can i do this with C++ Pin
Daniel Grunwald19-May-08 0:41
Daniel Grunwald19-May-08 0:41 
Randor wrote:
My reasoning is quite simple in that the compiler cannot perform optimizations with all of those unconditional jumps all over the place.


That's incorrect. Gotos are hard for humans, not for computers. In fact, the way nearly all compilers work is to transform the code into an intermediate representation where "if (a) { then; } else { otherwise; } becomes
if (a) goto 1 else goto 2
1: then;
goto 3
2: otherwise;
3: ...

And then the optimizer runs on that representation, so it can surely understand gotos. Optimizers can perfectly work with arbitrary control flow graphs, they're not limited to "structured" control flow.
Different source code may cause different machine code to be generated, but there's absolutely no reason that gotos would be less efficient.

For an explanation why goto is bad, read
go-to statement considered harmful[^]
GeneralRe: how can i do this with C++ Pin
reteset2-May-08 5:14
reteset2-May-08 5:14 
QuestionHow to find tab order dynamically. Pin
Abhijit A1-May-08 0:29
Abhijit A1-May-08 0:29 
AnswerRe: How to find tab order dynamically. Pin
Rajkumar R1-May-08 1:27
Rajkumar R1-May-08 1:27 
AnswerRe: How to find tab order dynamically. Pin
Blake Miller1-May-08 12:01
Blake Miller1-May-08 12:01 
QuestionHow can I know if a 3rd party unmanaged (e.g. cpp )dll is in debug or release ? Pin
Berlus30-Apr-08 23:38
Berlus30-Apr-08 23:38 
AnswerRe: How can I know if a 3rd party unmanaged (e.g. cpp )dll is in debug or release ? Pin
Chris Meech1-May-08 4:24
Chris Meech1-May-08 4:24 
Questionneed little help Pin
Asmo'a30-Apr-08 20:13
Asmo'a30-Apr-08 20:13 
AnswerRe: need little help Pin
Christian Graus30-Apr-08 20:19
protectorChristian Graus30-Apr-08 20:19 
QuestionIEToolbar related question? Pin
ritz123430-Apr-08 19:08
ritz123430-Apr-08 19:08 
QuestionRegQueryValueExNULL,RegSetValueExString,egQueryValueExString Pin
lahom30-Apr-08 18:59
lahom30-Apr-08 18:59 
AnswerRe: RegQueryValueExNULL,RegSetValueExString,egQueryValueExString Pin
Rajkumar R30-Apr-08 20:57
Rajkumar R30-Apr-08 20:57 
QuestionRe: RegQueryValueExNULL,RegSetValueExString,egQueryValueExString Pin
David Crow1-May-08 3:00
David Crow1-May-08 3:00 
AnswerRe: RegQueryValueExNULL,RegSetValueExString,egQueryValueExString Pin
Rajkumar R1-May-08 3:42
Rajkumar R1-May-08 3:42 
AnswerRe: RegQueryValueExNULL,RegSetValueExString,egQueryValueExString Pin
Rajkumar R1-May-08 7:12
Rajkumar R1-May-08 7:12 
QuestionAnother question on "Good Practices" involving code file size... Pin
x87Bliss30-Apr-08 15:39
x87Bliss30-Apr-08 15:39 
AnswerRe: Another question on "Good Practices" involving code file size... Pin
Steve Echols30-Apr-08 18:49
Steve Echols30-Apr-08 18:49 
AnswerRe: Another question on "Good Practices" involving code file size... Pin
Nelek1-May-08 22:12
protectorNelek1-May-08 22:12 

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.