How To Build An Operating System: Virtual Memory and Paging- Part 07

Virtual Memory

Advantages of Virtual Memory

  • It allows users to run more applications at a time.
  • Users can run a large application with less RAM.
  • Users can fit many large programs into smaller programs.
  • A multiprogramming environment can be easily implemented.
  • Data should be read from the disk at the time when required.
  • Common data can be shared easily between memory.


Paging in x86

linear address translation to a 4KByte page using 32-Bit paging

Identity Paging

Enabling Paging

Paging and the Kernel

Placing the Kernel at 0xC0000000

Higher-half Linker Script

Entering the Higher Half

Virtual Memory Through Paging




Software Engineering Undergraduate at University of Kelaniya

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Random mumblings on Angular JS evolution based on .Net and world

Best 16 Java Multi threading, Concurrency and Thread basics Questions 2019

Our Publication Articles Chosen for further distribution

Part 2: Deploying Telegram Bot for FREE on Heroku

Swift Access Control, Visually

Satisfying a quirk of mine.

World of Concurrent

Version Control Part 1: Basics

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pubudu Wickramathunge

Pubudu Wickramathunge

Software Engineering Undergraduate at University of Kelaniya

More from Medium

Red Hat Advanced Cluster Security for Kubernetes Configuration & Api Basics

What is Podman?

Are you looking for a VirtualBox alternative -Multi Pass Journey

Generate self signed certificates with SAN using openSSL