You need to install:
- NASM assembler
- GCC cross-compiler for i686-elf target
- QEMU for x86 emulation
# Install dependencies
sudo apt-get install build-essential bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo
# Follow the tutorial at https://wiki.osdev.org/GCC_Cross-Compiler to build your cross-compilermakemake runmake debugThen connect with GDB using:
gdb -ex "target remote localhost:1234" -ex "symbol-file os.bin"