Skip to content

Commit 67de233

Browse files
author
chenzufei
committed
添加用户态编程示例
1 parent 739d206 commit 67de233

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
环境:
2+
Ubuntu 20.04 server
3+
4+
编译命令:
5+
make
6+
7+
运行程序命令:
8+
./test
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <stdio.h>
2+
3+
int main()
4+
{
5+
printf("Hello world!\n");
6+
return 0;
7+
}

0 commit comments

Comments
 (0)