摘要:
本节源代码位置https://gitee.com/lmos/cosmos/tree/master/lesson02/HelloOS Hello OS 之前,我们先要搞清楚 Hello OS 的引导流程,如下图所示: PC 机 BIOS 固件是固化在 PC 机主板上的 ROM 芯片中的,掉电也能保存, 阅读全文
摘要:
计算机硬件是无法直接运行C 语言文本程序代码的,需要 C 语言编译器,把这个代码编译成具体硬件平台的二进制代码。再由具体操作系统建立进程,把这个二进制文件装进其进程的内存空间中,才能运行。 程序编译过程 示例代码: 经典Hello World C代码 #include "stdio.h" int m 阅读全文
摘要:
tail方式 tail参数-c就可以获取最后的几个字节 -c, --bytes=[+]NUM output the last NUM bytes; or use -c +NUM to output starting with byte NUM of each file ubuntu@VM-16-14 阅读全文
摘要:
现象 在ubuntu上编译内核时,apt-get source时出现如下warning: W: Download is performed unsandboxed as root as file '/var/cache/apt/archives/partial/samba-libs_2%3a4.5. 阅读全文