Click here to Skip to main content
16,016,157 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Thanks Peter,


I like the article and read through it last evening. Three more comments,

1.

I found two places in the document are conflicting, they are

- "Modern operating system and applications use the (unsegmented) memory model¾ all the segment registers are loaded with the same segment selector so that all memory references a program makes are to a single linear-address space." -- looks like segment is useless since unsegment model is used?

- "The offset which results from adding these components is called an effective address of the selected segment. Each of these components can have either a positive or negative (2's complement) value, with the exception of the scaling factor." -- why still needs segment selector to calculate? Conflicting with last statement, which is unsegment model?

2.

"Note that the value of the EIP may not match with the current instruction because of instruction prefetching. The only way to read the EIP is to execute a CALL instruction and then read the value of the return instruction pointer from the procedure stack." -- my confusion is, EIP is next instruction to execute, and why return address is the same as EIP? Are they related?

3.

"you generally create segment selectors with assembler directives and symbols. The assembler and/or linker then creates the actual segment selectors associated with these directives and symbols." -- what does this mean? Does it mean all segment related instruction will be ignored or modified by linker before execution?


regards,
George
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 
GeneralRe: check on invalid IP address Pin
CPallini15-Jul-08 20:51
mveCPallini15-Jul-08 20:51 
AnswerRe: check on invalid IP address Pin
Rajesh R Subramanian15-Jul-08 20:52
professionalRajesh R Subramanian15-Jul-08 20:52 
AnswerRe: check on invalid IP address Pin
Hamid_RT16-Jul-08 0:54
Hamid_RT16-Jul-08 0:54 
GeneralRe: check on invalid IP address Pin
rajveer2116-Jul-08 1:06
rajveer2116-Jul-08 1:06 
QuestionUse of Enter key on TreeCtrl. Pin
Le@rner15-Jul-08 20:10
Le@rner15-Jul-08 20:10 
Questionprocess termination Pin
George_George15-Jul-08 20:10
George_George15-Jul-08 20:10 
AnswerRe: process termination Pin
Stephen Hewitt15-Jul-08 20:40
Stephen Hewitt15-Jul-08 20:40 
GeneralRe: process termination Pin
George_George15-Jul-08 21:34
George_George15-Jul-08 21:34 
AnswerRe: process termination Pin
Hamid_RT16-Jul-08 0:58
Hamid_RT16-Jul-08 0:58 
GeneralRe: process termination Pin
George_George16-Jul-08 1:07
George_George16-Jul-08 1:07 
QuestionHow can close an exe file by use of function? Pin
Le@rner15-Jul-08 19:39
Le@rner15-Jul-08 19:39 
AnswerRe: How can close an exe file by use of function? Pin
Stephen Hewitt15-Jul-08 20:06
Stephen Hewitt15-Jul-08 20:06 
AnswerRe: How can close an exe file by use of function? Pin
Hamid_RT16-Jul-08 0:59
Hamid_RT16-Jul-08 0:59 

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.