解剖一个提示符 试试一些可替代的提示符设计 添加颜色 移动光标 保存提示符 总结归纳 拓展阅读 In this chapter we will look at a seemingly trivial detail — our shell prompt. This examination will reveal some of the inne...
自顶向下设计 As programs get larger and more complex, they become more difficult to design, code and maintain. As with any large project, it is often a good idea to break large, comple...
C代码嵌入汇编语言主要有两个原因: C 语言对硬件底层的处理被受到限制,比如 C 语句不能直接修改处理器的程序状态寄存器; 写出高度优化的代码。毫无疑问,虽然 GNU C 优化器的工作做得很好,但是其处理结果依然与手工汇编代码有差距。 本节的主题是我们容易忽略的部分:当使用内联汇编语句添加汇编语言代码时, C 编译器的代码优化器会对这些代码进行优化处...
流程控制:for 循环 for: 传统 shell 格式 for: C 语言格式 总结 拓展阅读 流程控制:for 循环 In this final chapter on flow control, we will look at another of the shell’s looping constructs. The for loop ...