User:Bellezzasolo/Windows

From OSDev Wiki
Jump to navigation Jump to search

Microsoft Windows

Introduction

OS development on windows isn't the easiest. The most used toolchain, binutils, isn't native.

Visual Studio

Introduction

Visual Studio only outputs portable executables. This is incompatible with GRUB.

GRUB

Youy can however, create a multiboot header. This bypasses the format barrier.

64 bit

You can't embed a 32 bit stub in a PE32+. Instead, load a 32 bit binary (with multiboot header), with the 64 bit kernel loaded as a module. Relocate the kernel, set up long mode, then call it.