Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalunnamed event object Pin
recksiek19-Dec-03 0:10
recksiek19-Dec-03 0:10 
GeneralRe: unnamed event object Pin
John R. Shaw19-Dec-03 0:39
John R. Shaw19-Dec-03 0:39 
Generaldelete read only file Pin
gaog18-Dec-03 23:39
gaog18-Dec-03 23:39 
GeneralRe: delete read only file Pin
Neville Franks19-Dec-03 0:24
Neville Franks19-Dec-03 0:24 
GeneralRe: delete read only file Pin
gaog19-Dec-03 11:22
gaog19-Dec-03 11:22 
Generalregister vs other types Pin
Ares218-Dec-03 23:04
Ares218-Dec-03 23:04 
GeneralRe: register vs other types Pin
Mike Beckerleg18-Dec-03 23:27
Mike Beckerleg18-Dec-03 23:27 
GeneralRe: register vs other types Pin
jmkhael18-Dec-03 23:27
jmkhael18-Dec-03 23:27 
The register keyword specifies that the variable is to be stored in a machine register, if possible.

This means that there's a chance that this wont happen in some cases, when the Processor registers are occupied.

If your variable is really treated as register, the CPU will grant you faster execution, cos direct computation are done on you register var.

Lets say you want to calculate in a loop i ++
Youll have something like this:

loop:
mov edx , 1
add eax , edx
jmp loop

But if the Processor doesnt give u access you'll have at least command that moves your var to a register to do the calc, and back from the register to your var, thus calculation in long loops can generate at least 2 * Number of loops instruction.

Hope this helps,

Papa


while (TRUE)
Papa.WillLove ( Bebe ) ;
GeneralRe: register vs other types Pin
Ares218-Dec-03 23:36
Ares218-Dec-03 23:36 
GeneralRe: register vs other types Pin
Prakash Nadar19-Dec-03 0:10
Prakash Nadar19-Dec-03 0:10 
GeneralRe: register vs other types Pin
Michael Dunn19-Dec-03 6:51
sitebuilderMichael Dunn19-Dec-03 6:51 
GeneralKeystroke log in a service Pin
De Nardis Andrea18-Dec-03 21:58
De Nardis Andrea18-Dec-03 21:58 
GeneralRe: Keystroke log in a service Pin
Robert Kuster19-Dec-03 1:09
Robert Kuster19-Dec-03 1:09 
GeneralRe: Keystroke log in a service Pin
De Nardis Andrea19-Dec-03 3:21
De Nardis Andrea19-Dec-03 3:21 
Questionhow to use two socket Pin
yingkou18-Dec-03 21:44
yingkou18-Dec-03 21:44 
AnswerRe: how to use two socket Pin
erkanina19-Dec-03 3:13
erkanina19-Dec-03 3:13 
Generalactivex problem Pin
satadru18-Dec-03 20:00
satadru18-Dec-03 20:00 
GeneralRe: activex problem Pin
Monty218-Dec-03 20:31
Monty218-Dec-03 20:31 
GeneralRe: activex problem Pin
satadru18-Dec-03 21:25
satadru18-Dec-03 21:25 
GeneralRe: activex problem Pin
Michael P Butler18-Dec-03 20:39
Michael P Butler18-Dec-03 20:39 
GeneralRe: activex problem Pin
Prakash Nadar18-Dec-03 21:13
Prakash Nadar18-Dec-03 21:13 
GeneralRe: activex problem Pin
satadru18-Dec-03 21:26
satadru18-Dec-03 21:26 
QuestionHow to handle windows messages in COM Exe server? Pin
Prakash Nadar18-Dec-03 19:54
Prakash Nadar18-Dec-03 19:54 
AnswerRe: How to handle windows messages in COM Exe server? Pin
Monty218-Dec-03 20:25
Monty218-Dec-03 20:25 
GeneralRe: How to handle windows messages in COM Exe server? Pin
Prakash Nadar18-Dec-03 21:11
Prakash Nadar18-Dec-03 21:11 

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.