$ sudo add-apt-repository ppa:tkchia/build-ia16
$ sudo apt-get update
$ sudo apt-get install gcc-ia16-elf
- tiny code model(64KB)
$ ia16-elf-gcc -mcmodel=tiny -march=i286 -o hello.com hello.c
$ file hello.com
hello.com: COM executable for DOS
- small code model
$ ia16-elf-gcc -mcmodel=small -march=i286 -o hello.exe hello.c
- medium code model
$ ia16-elf-gcc -mcmodel=medium -march=i286 -o hello.exe hello.c