To add your program to NachOS, follow these steps:
- Place your source code in the
NachOS/code/test
directory. - Add a line in the
NachOS/code/test/Makefile
file to specify your program for compilation.
To illustrate the process of adding, for example, test1
to NachOS, follow these steps:
- Place
test1.c
source file intoNachOS/code/test/
directory - Modify the
NachOS/code/test/Makefile
file to add atest1
make target, as shown below:
- Makefile:67
test1: test1.o start.o
$(LD) $(LDFLAGS) start.o test1.o -o test1.coff
../bin/coff2noff test1.coff test1
- Ensure that you add the
test1
make target at the end of theall
make target, as shown below:
- Makefile:36
all: halt shell matmult sort test1
This process will allow you to include and build test1
in NachOS.