任何程序 = minimal.S = 调用 syscall 的状态机
可执行文件是操作系统中的对象
查看可执行文件
vim
, cat
, xxd
都可以直接 “查看” 可执行文件vim
中二进制的部分无法 “阅读”,但可以看到字符串常量xxd
可以看到文件以 "\x7f" "ELF"
开头Core Utilities (coreutils)
系统/工具程序
其他各种应用程序
In general, trace refers to the process of following anything from the beginning to the end. For example, the
traceroute
command follows each of the network hops as your computer connects to another computer.
这门课中很重要的工具:
任何程序 = minimal.S = 调用 syscall 的状态机
(初学者对这一点会感到有一点惊讶)
工具程序代表:编译器 (gcc)
strace -f gcc a.c
(gcc 会启动其他进程)vim -
%!grep
(细节/技巧)图形界面程序代表:编辑器 (xedit)
strace xedit
都在
info proc *