An 80x86 assembler like MASM/NASM for the tiny OS
- You need to install cmake, and ninja / make
// example
# apt-get install cmake ninja-build clang clang++ lld libc6-dev-i386 linux-headers-generic bison flex libfl-dev coreutils
$ mkdir build
$ cd build
# if you use Unix environment
$ cmake -G "Unix Makefiles" ..
$ make
# if you can use Ninja
$ cmake -G Ninja ..
$ ninja
# or, you may want to specify compile option
# use backward.cpp for debugging
$ CMAKE_OPT="-DWITH_BACKWARDS_CPP=ON" ./ninja_build.sh
# clang is faster than gcc
$ CMAKE_OPT="-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++" ./ninja_build.sh
- You need to install mtools to build these files
- You need to install QEMU (> 3.1) to test it
'wine' should be very useful for you to debug
- Target names are formatted like
XX_day_haribxxx_{action}
- Actions are
sys
,run
,clean
and so on
- Actions are
# apt-get install qemu
$ cd opennask/build
$ ninja
$ ninja 03_day_harib00i_img
$ ninja 03_day_harib00i_run
You can use make
command instead of ninja
day3 harib00j | day4 harib01a |
---|---|
day4 harib01d | day5 harib02a |
---|---|
day5 harib02e | day5 harib02h |
---|---|
day6 harib03e | day8 harib05d |
---|---|
day20 harib17a |
---|