We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 739d206 commit 67de233Copy full SHA for 67de233
用户态和内核态编程/user/Makefile
@@ -0,0 +1,6 @@
1
+test: test.o
2
+ gcc test.o -o test
3
+test.o: test.c
4
+ gcc -c test.c -o test.o
5
+clean :
6
+ rm test test.o
用户态和内核态编程/user/readme.txt
@@ -0,0 +1,8 @@
+环境:
+Ubuntu 20.04 server
+
+编译命令:
+make
7
+运行程序命令:
8
+./test
用户态和内核态编程/user/test.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+int main()
+{
+ printf("Hello world!\n");
+ return 0;
+}
0 commit comments