Part 01- Operating Systems – Memory representation Techniques Byte Addressable and Word Addressable
Contents
- 0.1 Operating Systems – Memory Representation Techniques
- 0.2 1. Byte Addressable Memory
- 0.3 Characteristics:
- 0.4 Example:
- 0.5 2. Word Addressable Memory
- 0.6 Characteristics:
- 0.7 Example:
- 0.8 3. Key Differences Between Byte & Word Addressable Memory
- 0.9 4. Real-Life Applications
- 1 Conclusion
- 2 Operating Systems – Part 01: Memory Representation Techniques
- 3 1. What is Memory Addressing?
- 4 2. Byte Addressable Memory
- 5 3. Word Addressable Memory
- 6 4. Key Differences
- 7 5. Why It Matters in OS:
- 8 Example for GATE / Exams:
- 9 Summary:
- 9.1 Part 01- Operating Systems – Memory representation Techniques Byte Addressable and Word Addressable
- 9.2 Computer Organization and Architecture Tutorial Session
- 9.3 COMPUTER ORGANIZATION AND ARCHITECTURE
- 9.4 UNIT III Memory Organization
- 9.5 UNIT-III THE MEMORY SYSTEM
- 9.6 computer organization and architecture
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).
- Address
1000
stores 1 byte of data. - Address
1001
stores the next 1 byte, and so on.
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).
- Address
1000
refers to a whole word (4 bytes). - Address
1001
does not exist (because each address represents an entire word).
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
- Byte Addressable Memory: Used in general-purpose computers, laptops, smartphones, where different data types (char, int, float) need efficient storage.
- Word Addressable Memory: Used in high-performance computing, DSPs (Digital Signal Processors), some embedded systems, where fixed-size operations are more efficient.
Conclusion
- Most modern computers use Byte Addressable Memory for flexibility.
- Word Addressable Memory is efficient for specialized applications like high-speed computation.
- Understanding these techniques helps in system design and memory optimization.
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:
-
Most modern computers (e.g., Intel, ARM processors)
-
Easy to manipulate individual bytes
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:
-
Affects how instructions access memory.
-
Influences instruction set architecture (ISA).
-
Impacts alignment, pointers, and data structures.
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:
Let me know!