- MinGW
- Download and install http://www.mingw.org/download/installer
- Usually installs in
C:\MinGW\ - You will need to link the
C:\MinGW\bindirectory
- i686-elf targeting GCC
- Download and extract https://drive.google.com/file/d/0B85K_c7mx3QjUnZuaFRPWlBIcXM/edit?usp=sharing
- If this link goes dead, try finding another at http://wiki.osdev.org/GCC_Cross-Compiler#Prebuilt_Toolchains
- If there's none to be found, you will need to build your own GCC cross-compiler
- In this example, I've extracted it to
C:\software\ghost-i686-elf-tools - You will need to link the
C:\software\ghost-i686-elf-tools\bindirectory
- QEMU
- Download and install the latest exe at http://qemu.weilnetz.de/w64/
- Usually installs in
C:\Program Files\qemu
The code is copied verbatim from the OSdev.org Bare bones tutorial
- Make sure you've installed MinGW, QEMU, and have a i686-elf targeting GCC
- Edit
vars.cmdto match where you've installed or extracted dependencies.- set the
minGWvariable to the MinGW bin directory:SET "minGW=C:\MinGW\bin" - set the
gccvariable to the GCC bin directory:SET "gcc=C:\software\ghost-i686-elf-tools\bin" - set the
qemuvariable to the MinGW bin directory:SET "qemu=C:\Program Files\qemu"
- set the
- Run
build.batto build the OS and run it in QEMU- Run
run.batto just run the compiled code in QEMU
- Run