Click here to Skip to main content
15,885,909 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Aardappel wrote:
How do I stop the superfluous flushing/loading from happening?

You don't.

No, really. When the compiler wants one thing and you want another, the compiler *always* wins - I've been in this position too when it allocated regs like a drunk. I had to rewrite my code, using C++ and especially inlined templated functions (no matter how insane it seems, the basically 4 registers the compiler selects from had a profound difference) to get it to allocate and (not) flush regs where (not) needed.

Basically, when the compiler screws you, you have no voice - accept or rewrite.

One *can* of course fall back to ASM, but it suck when one have payed $$$ for an "optimizing" compiler that M$ had over a decade to "optimize", doesn't it. (btw, try to use the "intrinsic" versions of e.g. str* and mem* and you know what MS "quality" is...)
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 
Generalmailto problem Pin
skinnyreptile17-Jul-03 4:05
skinnyreptile17-Jul-03 4:05 
GeneralRe: mailto problem Pin
Iain Clarke, Warrior Programmer17-Jul-03 4:29
Iain Clarke, Warrior Programmer17-Jul-03 4:29 
GeneralRe: mailto problem Pin
Ryan Binns17-Jul-03 5:39
Ryan Binns17-Jul-03 5:39 
GeneralRe: mailto problem Pin
Iain Clarke, Warrior Programmer17-Jul-03 6:01
Iain Clarke, Warrior Programmer17-Jul-03 6:01 
GeneralTab Order Pin
User 988517-Jul-03 3:51
User 988517-Jul-03 3:51 

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.