DIZNR INTERNATIONAL

Part 01- Operating Systems – Memory representation Techniques Byte Addressable and Word Addressable

Part 01- Operating Systems – Memory representation Techniques Byte Addressable and Word Addressable

https://www.gyanodhan.com/video/7B7.%20GATE%20CSEIT/Operating%20System/413.%20Part%2001-%20Operating%20Systems%20-%20Memory%20representation%20Techniques%20Byte%20Addressable%20and%20Word%20Addressable.mp4

Operating Systems – Memory Representation Techniques

Part 01: Byte Addressable & Word Addressable Memory

Memory representation techniques determine how data is stored and accessed in a computer system. The two main types of addressing techniques are Byte Addressable Memory and Word Addressable Memory.

1. Byte Addressable Memory

In a byte-addressable memory system, each individual byte (8 bits) has a unique address. This means that the smallest unit of memory that can be accessed is one byte.

Characteristics:

 Each memory address refers to a single byte (8 bits).
 Common in modern computer architectures (x86, ARM).
 Supports variable-sized data types (1-byte, 2-byte, 4-byte, etc.).

Example:

Assume we have a 32-bit memory system (4 bytes per word).

Memory Address Data Stored
1000 10101010
1001 11001100
1002 11110000
1003 00001111

 If we want to fetch a 4-byte integer, the CPU will read four consecutive byte addresses.

2. Word Addressable Memory

In a word-addressable memory system, the smallest unit that can be addressed is a word, which may be 2, 4, or more bytes depending on the architecture.

Characteristics:

 Each memory address refers to a word instead of a byte.
 Mostly found in older architectures (mainframes, embedded systems).
 More efficient for fixed-size data processing.

Example:

Assume a word size of 4 bytes (32-bit word size).

Word Address Data Stored (4 Bytes)
1000 10101010 11001100 11110000 00001111
1001 Not Available
1002 Not Available
1003 Not Available

 Here, fetching a 4-byte integer requires a single memory access, making it faster for fixed-size operations.

3. Key Differences Between Byte & Word Addressable Memory

Feature Byte Addressable Word Addressable
Smallest Addressable Unit 1 Byte (8 bits) 1 Word (2, 4, or more bytes)
Common In Modern systems (PCs, smartphones) Older/mainframe systems
Flexibility Supports different data sizes (1, 2, 4, 8 bytes) Limited flexibility (fixed word size)
Efficiency Better for variable data Faster for fixed-size processing

4. Real-Life Applications

Conclusion

Would you like examples of memory addressing calculations or more details on how CPU fetches data?

Part 01- Operating Systems – Memory representation Techniques Byte Addressable and Word Addressable

OPERATING SYSTEM Lecture Notes On

UNIT – I – Operating System – SBS1206

Operating System

Certainly! Here’s a clear and concise explanation of:


Operating Systems – Part 01: Memory Representation Techniques

Byte Addressable vs Word Addressable Memory


1. What is Memory Addressing?

Memory addressing refers to how memory locations are identified and accessed. The Operating System (OS) and CPU architecture define how data is stored and retrieved from main memory (RAM).


2. Byte Addressable Memory

Definition:

In byte-addressable memory, each memory address points to one byte (8 bits) of data.

Example:

Address Content
1000 A
1001 B
1002 C

If a variable is 4 bytes, and starts at address 1000, it occupies 1000 to 1003.

Common In:


3. Word Addressable Memory

Definition:

In word-addressable memory, each address refers to a word, not a byte. A word is a group of bytes (typically 2, 4, or 8 bytes depending on the system).

Example:

If the word size = 4 bytes, and the address 1000 refers to a full 4-byte word:

Address Content
1000 A B C D (4 bytes)
1001 E F G H

You cannot directly access individual bytes.


4. Key Differences

Feature Byte Addressable Word Addressable
Address unit 1 byte 1 word (e.g., 4 bytes)
Flexibility High (can access bytes) Less flexible
Memory usage Slightly more overhead More efficient in block operations
Used in Modern computers Some embedded or legacy systems

5. Why It Matters in OS:


Example for GATE / Exams:

Q: A system uses 32-bit word-addressable memory and each word has 4 bytes. What is the size of the memory if it has 2^20 addresses?

A:
Memory size = 2²⁰ * 4 bytes = 4 MB


Summary:

Concept Byte Addressable Word Addressable
Address granularity Byte Word
Ease of access High Lower (at byte level)
Example processors Intel, ARM Some DSP, old systems

Would you like:
A visual diagram for this?
Practice questions or memory layout problems?

Let me know!

Part 01- Operating Systems – Memory representation Techniques Byte Addressable and Word Addressable

Computer Organization and Architecture Tutorial Session

COMPUTER ORGANIZATION AND ARCHITECTURE

UNIT III Memory Organization

UNIT-III THE MEMORY SYSTEM

computer organization and architecture