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

Expert Interview: The HoloBuilder E.U. Server Option at the Max Bögl Group

Interview Q&Awer

Working Process of LDAP Server!

RESTful WebServices API Testing [Rest Assured & Karate Framework]

Record-like Data Structure in Python

Architecture behind a Web Scraper that runs on the AWS Cloud

2021 iPad Pro as a laptop replacement for software engineers

How To Merge Finder Windows In Mac — 1 minute guide!

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

Using Docker and Refinitiv Real-Time Connector for testing Streaming Market Data applications

Configuring Auth0 with WSO2 API Manager for SSO

Automating Planetscale Deploy Requests into our CI/CD

CS 371p Spring 2022: Sarunas Budreckis — Entry #3