Day 00 - Environment Preparation

The running environment is:

So, we should install: * brew * nasm * i386-elf-g++ * qemu

brew

I think everyone hates to compile source code. brew is a good solution for Mac that saves you tons of trouble. The installation guide can be found following Homebrew.

nasm

nasm is a famous assembly language assembler designed for 80x86 (8086, 80286, etc) and x86_64 . We use brew to install nasm by running commands:

brew install nasm

qemu

qemu will be the emulator / virtual machine that will test our operating system. The installation is to execute

brew install qemu

i386-elf-g++

The MAC OS has its own symtax to ‘translate’ C/C++. Since we are designing an OS for 80x86 platform, we need a corresponding compiler. i386-elf-g++ is a compiler tool for 80386.

brew install  i386-elf-gcc
xcode-select --install
brew reinstall gcc