Click here to Skip to main content
15,909,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Two basic questions about generated assembly Pin
Stephen Hewitt16-Jul-08 20:02
Stephen Hewitt16-Jul-08 20:02 
George_George wrote:
I have read the link you referred. It talks about how protected mode is using segment based accessment model. But during the whole article, it never mentioned what means linear and non-lnear -- and this is my question.


This is an oversimplification, but here goes.

In protected mode a number of segment register are used:
CS : Code segment
DS : Data segment
SS : Stack segment
ES : Extra segment
FS : Another extra segment
GS : Yet another extra segment

Different instructions use different segments for different purposes (some instructions also allow for the default segment used to be overridden). Each segment can represent a physically distinct linearly addressable memory space; it’s possible to set things up so that memory addressable in one segment is not addressable in another. In Windows most of the segment registers map to the same memory, which is good as languages such as C/C++ have no concept of segments (or you could think of it as only supporting one segment). The FS segment is an exception however and serves a special purpose: the memory in it is the TIB. So languages like C/C++ can access the TIB the same memory is also mapped into the other segments. The address in the other segments where it’s mapped is stored at FS:[0x18].

George_George wrote:
Could you provide a link for the data sheet you means please? Sorry I am new to this area.


See here[^]. Makes good bedtime reading¿

Steve

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 
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 

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.