Define data segment.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Define data segment.

Expert Solution
Step 1

A data segment is a section of a program's object-oriented program or corresponding addressing space containing initialized static variables, that is, global parameters and regional fixed variables. This segment's size is influenced by the magnitude of values throughout the code of the program and does not adjust at runtime.

Step 2

Data segment:-

The data section is read/write since it is possible to modify the values of variables at a run. This compares with the publish-only data item (.rodata or .rodata segment), which includes static variables instead of variables; it also contrasts with the line of code, that is read-only on many systems, also recognized as the given text. Rather, null pointer knowledge, both parameters, and constants are in the BSS section.

Historically, early CPUs introduced a segmentation scheme that would store a limited collection of indexes to be used as offsets for some areas in order to accommodate program memory spaces greater than that of the native size of the internal address registry. Four segments were supplied by the Intel 8086 CPU family: the code section, the data segment, a stack section, and the extra segment. The program being executed put each segment at a specific location in memory and all instructions that worked on the information in those segments were carried out relative to the beginning of that segment. It allowed 1 MB of memory space to be accessed by a 16-bit address registry that would usually be able to view 64 KB of memory space.

With particular tasks carried over into languages of the day, this segmentation of the system memory into distinct blocks and the principle is still commonly used in modern languages.

steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY