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

C / C++ / MFC

 
QuestionLabel adresses in inline assembly Pin
Remco Hoogenboezem5-Sep-09 11:21
Remco Hoogenboezem5-Sep-09 11:21 
AnswerRe: Label adresses in inline assembly Pin
Stuart Dootson5-Sep-09 13:46
professionalStuart Dootson5-Sep-09 13:46 
AnswerRe: Label adresses in inline assembly Pin
Randor 5-Sep-09 16:24
professional Randor 5-Sep-09 16:24 
GeneralRe: Label adresses in inline assembly Pin
Stuart Dootson5-Sep-09 23:39
professionalStuart Dootson5-Sep-09 23:39 
AnswerRe: Label adresses in inline assembly Pin
Remco Hoogenboezem6-Sep-09 0:56
Remco Hoogenboezem6-Sep-09 0:56 
GeneralRe: Label adresses in inline assembly Pin
Luc Pattyn6-Sep-09 1:16
sitebuilderLuc Pattyn6-Sep-09 1:16 
GeneralRe: Label adresses in inline assembly Pin
Remco Hoogenboezem6-Sep-09 9:02
Remco Hoogenboezem6-Sep-09 9:02 
GeneralRe: Label adresses in inline assembly Pin
Luc Pattyn6-Sep-09 9:32
sitebuilderLuc Pattyn6-Sep-09 9:32 
I forgot to mention one technique I often use in cases like this, where the expensive jump is taken only once (upon entry); I'll describe it in pseudo-code, it basically is a loop unroll by 4:
switch(count%4) {
case 0:
   // do step
   goto case1;
case 1:
   // do step
   goto case2;
case 2:
   // do step
   goto case3;
case 3:
   // do step
   count-=4;
   if (count>0) goto case0;
}


You can do this in any language, with a switch or with labels and jumps (and if the language allows fall-through, you may skip most of the goto's). In assembly, you would still need labels.

Smile | :)

Luc Pattyn
Badger | [badger,badger,badger,badger...] Jig | [Dance] Badger | [badger,badger,badger,badger...] Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.Jig | [Dance] Badger | [badger,badger,badger,badger...] Jig | [Dance]

QuestionHow to handle breaks during debugging Pin
prithaa5-Sep-09 8:43
prithaa5-Sep-09 8:43 
AnswerRe: How to handle breaks during debugging Pin
Stuart Dootson5-Sep-09 10:23
professionalStuart Dootson5-Sep-09 10:23 
GeneralRe: How to handle breaks during debugging Pin
prithaa5-Sep-09 20:19
prithaa5-Sep-09 20:19 
GeneralRe: How to handle breaks during debugging Pin
Stuart Dootson5-Sep-09 23:36
professionalStuart Dootson5-Sep-09 23:36 
GeneralRe: How to handle breaks during debugging Pin
prithaa6-Sep-09 0:20
prithaa6-Sep-09 0:20 
GeneralRe: How to handle breaks during debugging Pin
Stuart Dootson6-Sep-09 0:57
professionalStuart Dootson6-Sep-09 0:57 
GeneralRe: How to handle breaks during debugging Pin
prithaa6-Sep-09 1:00
prithaa6-Sep-09 1:00 
GeneralRe: How to handle breaks during debugging Pin
Stuart Dootson6-Sep-09 1:03
professionalStuart Dootson6-Sep-09 1:03 
GeneralRe: How to handle breaks during debugging Pin
iraclyKv6-Sep-09 23:50
iraclyKv6-Sep-09 23:50 
AnswerRe: How to handle breaks during debugging Pin
Iain Clarke, Warrior Programmer6-Sep-09 9:25
Iain Clarke, Warrior Programmer6-Sep-09 9:25 
GeneralRe: How to handle breaks during debugging Pin
prithaa6-Sep-09 19:11
prithaa6-Sep-09 19:11 
QuestionCalling Unmanaged Class From DLL Pin
İsmail Durmaz5-Sep-09 5:27
İsmail Durmaz5-Sep-09 5:27 
AnswerRe: Calling Unmanaged Class From DLL Pin
«_Superman_»5-Sep-09 5:34
professional«_Superman_»5-Sep-09 5:34 
GeneralRe: Calling Unmanaged Class From DLL Pin
İsmail Durmaz5-Sep-09 5:37
İsmail Durmaz5-Sep-09 5:37 
GeneralRe: Calling Unmanaged Class From DLL Pin
«_Superman_»5-Sep-09 5:42
professional«_Superman_»5-Sep-09 5:42 
GeneralRe: Calling Unmanaged Class From DLL Pin
İsmail Durmaz5-Sep-09 5:43
İsmail Durmaz5-Sep-09 5:43 
GeneralRe: Calling Unmanaged Class From DLL Pin
Joe Woodbury5-Sep-09 8:39
professionalJoe Woodbury5-Sep-09 8:39 

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.