Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Image Processing with Goole Earth Pin
CPallini15-Jul-08 21:53
mveCPallini15-Jul-08 21:53 
GeneralRe: Image Processing with Goole Earth Pin
Blade_Bao15-Jul-08 22:25
Blade_Bao15-Jul-08 22:25 
GeneralRe: Image Processing with Goole Earth Pin
CPallini15-Jul-08 22:30
mveCPallini15-Jul-08 22:30 
GeneralRe: Image Processing with Goole Earth Pin
Blade_Bao15-Jul-08 22:45
Blade_Bao15-Jul-08 22:45 
JokeRe: Image Processing with Goole Earth Pin
Rajesh R Subramanian15-Jul-08 22:44
professionalRajesh R Subramanian15-Jul-08 22:44 
JokeRe: Image Processing with Goole Earth Pin
CPallini16-Jul-08 2:08
mveCPallini16-Jul-08 2:08 
QuestionTwo basic questions about generated assembly Pin
George_George15-Jul-08 21:02
George_George15-Jul-08 21:02 
AnswerRe: Two basic questions about generated assembly PinPopular
Rajesh R Subramanian15-Jul-08 21:28
professionalRajesh R Subramanian15-Jul-08 21:28 
George_George wrote:
why using LEA to do multiplication is faster than using MUL?

"Using "LEA EAX,[EAX*4+EAX]" turns out to be faster than the MUL instruction."


lea seems to be an addressing instruction, which means it probably must execute in a single cycle and therefore would surely be faster than mul. On the other side, because it is an addressing instruction, think if you will be able to multiply very large numbers this way. There must be surely limitations on that. mul can work with large numbers also. Smile | :)

Thanks for the question, the search for an answer got me an interesting read. Smile | :)

Link: Wikibooks->Reverse Engineering->CodeTransformations->Common instruction substitutions[^]

Warning: I'm not a full time assembly programmer and I may not be accurate.

My assumptions: An X86 Processor, pentium class.

Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.


Microsoft MVP - Visual C++[^]

GeneralRe: Two basic questions about generated assembly Pin
George_George15-Jul-08 21:36
George_George15-Jul-08 21:36 
GeneralRe: Two basic questions about generated assembly Pin
Rajesh R Subramanian15-Jul-08 22:25
professionalRajesh R Subramanian15-Jul-08 22:25 
GeneralRe: Two basic questions about generated assembly Pin
George_George16-Jul-08 21:19
George_George16-Jul-08 21:19 
GeneralWhoever downvoted me Pin
Rajesh R Subramanian15-Jul-08 21:44
professionalRajesh R Subramanian15-Jul-08 21:44 
GeneralRe: Whoever downvoted me Pin
George_George15-Jul-08 21:50
George_George15-Jul-08 21:50 
GeneralRe: Whoever downvoted me Pin
Rajesh R Subramanian15-Jul-08 21:58
professionalRajesh R Subramanian15-Jul-08 21:58 
GeneralRe: Whoever downvoted me Pin
George_George15-Jul-08 22:06
George_George15-Jul-08 22:06 
GeneralRe: Whoever downvoted me Pin
Rajesh R Subramanian15-Jul-08 22:11
professionalRajesh R Subramanian15-Jul-08 22:11 
GeneralRe: Whoever downvoted me Pin
ThatsAlok17-Jul-08 22:18
ThatsAlok17-Jul-08 22:18 
GeneralRe: Whoever downvoted me Pin
Rajesh R Subramanian17-Jul-08 23:07
professionalRajesh R Subramanian17-Jul-08 23:07 
AnswerRe: Two basic questions about generated assembly Pin
Stephen Hewitt15-Jul-08 21:36
Stephen Hewitt15-Jul-08 21:36 
GeneralRe: Two basic questions about generated assembly Pin
George_George15-Jul-08 21:42
George_George15-Jul-08 21:42 
GeneralRe: Two basic questions about generated assembly Pin
Stephen Hewitt15-Jul-08 21:46
Stephen Hewitt15-Jul-08 21:46 
GeneralRe: Two basic questions about generated assembly Pin
George_George16-Jul-08 0:49
George_George16-Jul-08 0:49 
QuestionRe: Two basic questions about generated assembly Pin
Rajesh R Subramanian16-Jul-08 0:56
professionalRajesh R Subramanian16-Jul-08 0:56 
AnswerRe: Two basic questions about generated assembly Pin
George_George16-Jul-08 1:09
George_George16-Jul-08 1:09 
GeneralRe: Two basic questions about generated assembly Pin
George_George16-Jul-08 19:08
George_George16-Jul-08 19:08 

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.