Answer the question
In order to leave comments, you need to log in
What is a program code segment in a process?
Everywhere it is written that the process consists of a program code segment, data, stack and heap. What is a code segment? Type of the instruction whence the flow takes the information on performance? And it turns out that the OS takes these instructions and sends them further?
Answer the question
In order to leave comments, you need to log in
First you need to understand the concept of "address space" - how it differs from "memory". Learn how "computer address space" differs from "process address space" (in particular, each process has its own address space).
Further, it would be nice to know the segment addressing system of *86 processors - a significant part of the terminology comes from there, although in reality, after the advent of 32-bit addressing on the i386 processor, segments are practically not used.
Well, you need to have an understanding of assembly language programming.
As a first approximation, the start of the process looks like this:
By the way, this is not on all architectures. Just the most settled
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question