我是xv6操作系统的新手,我想在xv6中运行C程序,其中是否有命令或某些内容可以编译和运行C程序?
Xv6 is a simple Unix-like teaching operating system
open the terminal and to compile
gcc program-source-code.c -o executable-file-name
and execute
./ executable-file-name
I think it is not possible to compile using gcc and put directly ur code into xv6, You have to write file like stressfs.c cat.c of xv6 source code within the xv6 source code and then add your file in the Makefile of the xv6 then you can run ur code into xv6 shell. I tried gcc but it didn't work for me
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.