我的测试(OSX),先来个hello world吧!(其他筒子不要学我哦,这个案例已经被我占了)
wangjunhuideMacBook-Pro:~ wangjunhui$ ssh -p 4022
[email protected]
[email protected]'s password: (你得问王哥要)
Linux RVboards 5.4.61 #18 PREEMPT Wed Apr 21 03:27:47 UTC 2021 riscv64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Apr 22 13:43:46 2021 from ::1
[email protected]:~$ cd hello
[email protected]:~/hello$ ls
Makefile a.out hello hello.c hello.o
[email protected]:~/hello$ vim hello.c
( 此处省略n字,仅留下“printf("Hello world, Mark by Wangjunhui\r\n");” )
[email protected]:~/hello$ vim Makefile
( 万一Makefile被人改了,就编译不了哦)
[email protected]:~/hello$ make
gcc -O2 -c -o hello.o hello.c
gcc -O2 -o hello hello.o
[email protected]:~/hello$ ./hello
rvboards test.
完成。