Click here to Skip to main content
15,917,636 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalget state of ctrl key from MSG* Pin
roel_17-Jul-03 6:14
roel_17-Jul-03 6:14 
GeneralRe: get state of ctrl key from MSG* Pin
PJ Arends17-Jul-03 6:40
professionalPJ Arends17-Jul-03 6:40 
GeneralRe: get state of ctrl key from MSG* Pin
Mike Nordell17-Jul-03 8:51
Mike Nordell17-Jul-03 8:51 
GeneralRe: get state of ctrl key from MSG* Pin
PJ Arends17-Jul-03 9:35
professionalPJ Arends17-Jul-03 9:35 
GeneralRe: get state of ctrl key from MSG* Pin
roel_17-Jul-03 23:10
roel_17-Jul-03 23:10 
Generalplace a file into clipboard Pin
tomc17-Jul-03 6:07
tomc17-Jul-03 6:07 
GeneralRe: place a file into clipboard Pin
Mike Nordell17-Jul-03 8:54
Mike Nordell17-Jul-03 8:54 
QuestionHow to stop the msvc optimizer from flushing registers? Pin
Aardappel17-Jul-03 5:35
Aardappel17-Jul-03 5:35 
I am trying to optimize the inner loop of an interpreter, and looking at the generated machine code I notice that the compiler always writes a local variable back to the stack frame after it has been modified, even though the variable is held in the same register throughout the entire loop & its lifetime. Sometimes it randomly loads it from the stack as well, even though it was already in the same register just before, and no control flow is present in between.

The variable is not static/volatile, is not aliased (its address is never taken), and its register is never used for other purposes in the generated code. I have all optimisations on max and even have /Oa on. Using vs.net.

How do I stop the superfluous flushing/loading from happening?

AnswerRe: How to stop the msvc optimizer from flushing registers? Pin
Ryan Binns17-Jul-03 5:48
Ryan Binns17-Jul-03 5:48 
GeneralRe: How to stop the msvc optimizer from flushing registers? Pin
Mike Nordell17-Jul-03 9:22
Mike Nordell17-Jul-03 9:22 
GeneralRe: How to stop the msvc optimizer from flushing registers? Pin
Ryan Binns17-Jul-03 14:28
Ryan Binns17-Jul-03 14:28 
GeneralRe: How to stop the msvc optimizer from flushing registers? Pin
Aardappel17-Jul-03 21:24
Aardappel17-Jul-03 21:24 
AnswerRe: How to stop the msvc optimizer from flushing registers? Pin
Mike Nordell17-Jul-03 9:08
Mike Nordell17-Jul-03 9:08 
GeneralRe: How to stop the msvc optimizer from flushing registers? Pin
Anonymous17-Jul-03 21:28
Anonymous17-Jul-03 21:28 
GeneralRe: How to stop the msvc optimizer from flushing registers? Pin
Aardappel17-Jul-03 21:30
Aardappel17-Jul-03 21:30 
QuestionHow can I import a nice looking icon? Pin
DanYELL17-Jul-03 5:26
DanYELL17-Jul-03 5:26 
AnswerRe: How can I import a nice looking icon? Pin
pranavamhari17-Jul-03 6:23
pranavamhari17-Jul-03 6:23 
AnswerRe: How can I import a nice looking icon? Pin
Mike Nordell17-Jul-03 9:12
Mike Nordell17-Jul-03 9:12 
GeneralSimple Direct Show question Pin
rrrado17-Jul-03 5:22
rrrado17-Jul-03 5:22 
GeneralRe: Simple Direct Show question Pin
GheeButter17-Jul-03 8:15
GheeButter17-Jul-03 8:15 
QuestionHow can I prevent that an OCX or a Dll is loading more then once? Pin
gar@isogmbh.de17-Jul-03 4:48
gar@isogmbh.de17-Jul-03 4:48 
AnswerRe: How can I prevent that an OCX or a Dll is loading more then once? Pin
Iain Clarke, Warrior Programmer17-Jul-03 5:00
Iain Clarke, Warrior Programmer17-Jul-03 5:00 
GeneralRe: How can I prevent that an OCX or a Dll is loading more then once? Pin
gar@isogmbh.de17-Jul-03 6:21
gar@isogmbh.de17-Jul-03 6:21 
QuestionHow to debug "abnormal program termination" Pin
Anonymous17-Jul-03 4:40
Anonymous17-Jul-03 4:40 
Generaltapi messages Pin
Liate17-Jul-03 4:07
Liate17-Jul-03 4:07 

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.