Question
In this assignment, you'll start getting familiar with xv6 by writing a couple simple programs that run in the xv6 OS. For part 1 write
In this assignment, you'll start getting familiar with xv6 by writing a couple simple programs that run in the xv6 OS.
For part 1 write a program for xv6 that, when run, prints "Hello world" to the xv6 console. This can be broken up into a few steps:
-
Create a file in the xv6 directory named hello.c
-
Code your program in hello.c such that it implements printing "Hello world"
-
Edit the file Makefile, find the section UPROGS which contains a list of programs to be built, and add a line to tell it to build your Hello World program. When you're done that portion of the Makefile should look like:
-
Run make to build xv6, including your new program (repeating steps 2 and 4 until you have compiling code)
-
Run make qemu to launch xv6, and then type hello in the QEMU window. You should see "Hello world" be printed out.
Note: use the make clean command to clear the compiled files whenever necessary.
Please provide screenshots/commands/source code for the solution to the problem.
cat echo forktest grep init kill ln mkdir rm sh stressfs usertests WC zombie helloStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started