/OS-dev-Windows-start

Tutorial: getting started with OS development in assembly and C/C++ (GCC) on Windows

Primary LanguageAssembly

Getting started with OS development on Windows

You will need

The OS code itself

The code is copied verbatim from the OSdev.org Bare bones tutorial

Building and running the OS

  1. Make sure you've installed MinGW, QEMU, and have a i686-elf targeting GCC
  2. Edit vars.cmd to match where you've installed or extracted dependencies.
    • set the minGW variable to the MinGW bin directory: SET "minGW=C:\MinGW\bin"
    • set the gcc variable to the GCC bin directory: SET "gcc=C:\software\ghost-i686-elf-tools\bin"
    • set the qemu variable to the MinGW bin directory: SET "qemu=C:\Program Files\qemu"
  3. Run build.bat to build the OS and run it in QEMU
    • Run run.bat to just run the compiled code in QEMU