Click here to Skip to main content
15,921,169 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Two basic questions about generated assembly Pin
Stephen Hewitt16-Jul-08 20:02
Stephen Hewitt16-Jul-08 20:02 
GeneralRe: Two basic questions about generated assembly Pin
George_George16-Jul-08 20:54
George_George16-Jul-08 20:54 
AnswerRe: Two basic questions about generated assembly Pin
CPallini15-Jul-08 21:43
mveCPallini15-Jul-08 21:43 
1. From the same article, below your quoted sentence.

The LEA instruction uses hardwired address generation tables that makes multiplying by a select set of numbers very fast (for example, multiplying by 3, 5, and 9). Twisted, but true.

That means LEA instruction is faster than MUL only for a small set of multipliers's value.

2.
George_George wrote:
The TEB's linear address can be found at offset 0x18 in the TEB." -- what means linear address? Something like array, which elements are put next to each other?


I think it means direct address, i.e.
mov         eax,dword ptr fs:[00000018h]
load eax with the address of TEB, hence the following instruction
mov         eax,dword ptr [eax+24h]
loads eax with value found at offset 0x24 int the TEB (the Thread ID).

George_George wrote:
What means non-linear address?

I suppose it is indirect addressing (via FS register in this context).
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


[My articles]

GeneralRe: Two basic questions about generated assembly Pin
George_George15-Jul-08 21:49
George_George15-Jul-08 21:49 
GeneralRe: Two basic questions about generated assembly Pin
Stephen Hewitt15-Jul-08 22:20
Stephen Hewitt15-Jul-08 22:20 
GeneralRe: Two basic questions about generated assembly Pin
George_George16-Jul-08 0:48
George_George16-Jul-08 0:48 
AnswerRe: Two basic questions about generated assembly Pin
Rajesh R Subramanian16-Jul-08 1:07
professionalRajesh R Subramanian16-Jul-08 1:07 
GeneralRe: Two basic questions about generated assembly Pin
George_George16-Jul-08 1:14
George_George16-Jul-08 1:14 
GeneralRe: Two basic questions about generated assembly Pin
jhwurmbach16-Jul-08 4:27
jhwurmbach16-Jul-08 4:27 
GeneralRe: Two basic questions about generated assembly Pin
George_George16-Jul-08 20:35
George_George16-Jul-08 20:35 
GeneralRe: Two basic questions about generated assembly Pin
jhwurmbach17-Jul-08 7:19
jhwurmbach17-Jul-08 7:19 
GeneralRe: Two basic questions about generated assembly Pin
George_George17-Jul-08 20:58
George_George17-Jul-08 20:58 
AnswerRe: Two basic questions about generated assembly Pin
Rajesh R Subramanian15-Jul-08 22:05
professionalRajesh R Subramanian15-Jul-08 22:05 
GeneralRe: Two basic questions about generated assembly Pin
George_George15-Jul-08 22:20
George_George15-Jul-08 22:20 
AnswerRe: Two basic questions about generated assembly Pin
cp987616-Jul-08 1:09
cp987616-Jul-08 1:09 
GeneralRe: Two basic questions about generated assembly Pin
George_George16-Jul-08 19:19
George_George16-Jul-08 19:19 
QuestionSendMessage in Hooked application Pin
nitin315-Jul-08 20:51
nitin315-Jul-08 20:51 
AnswerRe: SendMessage in Hooked application Pin
Naveen15-Jul-08 21:05
Naveen15-Jul-08 21:05 
AnswerRe: SendMessage in Hooked application Pin
Hamid_RT16-Jul-08 0:53
Hamid_RT16-Jul-08 0:53 
Questioncheck on invalid IP address [modified] Pin
rajveer2115-Jul-08 20:42
rajveer2115-Jul-08 20:42 

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.